routers/repo/http: only prompt HTTP Basic Authentication when intended

Sometimes user could simply request wrong URL, but if that wrong URL
has nothing related Git HTTP operations, HTTP Basic Authentication
should not prompted. Instead, clean 404 page should be presented.

The patch also supports Git HTTP operations without '.git' suffix
to the repository name, which addresses #4226 and #4189.
This commit is contained in:
Unknwon
2017-03-04 21:26:32 -05:00
parent 837fc9847d
commit e9838a83ce
5 changed files with 39 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.10.4.0303"
const APP_VER = "0.10.5.0304"
func init() {
setting.AppVer = APP_VER