mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-30 19:08:37 +00:00 
			
		
		
		
	Add support for HEAD requests in Maven registry (#21834)
Related #18543 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
		| @@ -181,6 +181,7 @@ func CommonRoutes(ctx gocontext.Context) *web.Route { | ||||
| 		r.Group("/maven", func() { | ||||
| 			r.Put("/*", reqPackageAccess(perm.AccessModeWrite), maven.UploadPackageFile) | ||||
| 			r.Get("/*", maven.DownloadPackageFile) | ||||
| 			r.Head("/*", maven.ProvidePackageFileHeader) | ||||
| 		}, reqPackageAccess(perm.AccessModeRead)) | ||||
| 		r.Group("/nuget", func() { | ||||
| 			r.Group("", func() { // Needs to be unauthenticated for the NuGet client. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user