From 75e10445ca8ecd76f3950825ffd161c2fc32da6a Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Sat, 4 Jun 2022 10:44:54 +0800 Subject: http: fix non-sense `NotFound` call (#7003) --- internal/route/repo/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/route') 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 } -- cgit v1.2.3