mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	fix a small nit (#11834)
As title, run this line in one time is enough. Signed-off-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
		@@ -332,8 +332,9 @@ func HTTP(ctx *context.Context) {
 | 
			
		||||
		Env:         environ,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for _, route := range routes {
 | 
			
		||||
	r.URL.Path = strings.ToLower(r.URL.Path) // blue: In case some repo name has upper case name
 | 
			
		||||
 | 
			
		||||
	for _, route := range routes {
 | 
			
		||||
		if m := route.reg.FindStringSubmatch(r.URL.Path); m != nil {
 | 
			
		||||
			if setting.Repository.DisableHTTPGit {
 | 
			
		||||
				w.WriteHeader(http.StatusForbidden)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user