aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-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
}