aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-06-04 10:44:54 +0800
committerGitHub <noreply@github.com>2022-06-04 10:44:54 +0800
commit75e10445ca8ecd76f3950825ffd161c2fc32da6a (patch)
tree680c7afdddd12eb5c8a6e6ac4c02e1323a13c426 /internal/route/repo
parent5f0999243a3d5248fd78f0271a184f8b12bdb0c4 (diff)
http: fix non-sense `NotFound` call (#7003)
Diffstat (limited to 'internal/route/repo')
-rw-r--r--internal/route/repo/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/repo/http.go b/internal/route/repo/http.go
index 67d8edf8..e5a7570d 100644
--- a/internal/route/repo/http.go
+++ b/internal/route/repo/http.go
@@ -100,7 +100,7 @@ func HTTPContexter() macaron.Handler {
!strings.Contains(action, "info/") &&
!strings.Contains(action, "HEAD") &&
!strings.Contains(action, "objects/") {
- c.NotFound()
+ c.Error(http.StatusBadRequest, fmt.Sprintf("Unrecognized action %q", action))
return
}