From c96d2ab95a620959ac72dbdfeed863c348291518 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Feb 2025 01:06:50 +0800 Subject: http: Fix detecting subgroups with separator_index In eabdb3c93cd7118deb5745cca7be9f11a196a9b8 we caused an error message whenver subgroups are used which was written erroneously, causing e.g. the forge front page to be handled here. --- http_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_server.go b/http_server.go index c17bc6f..2bd345c 100644 --- a/http_server.go +++ b/http_server.go @@ -84,7 +84,7 @@ func (router *http_router_t) ServeHTTP(w http.ResponseWriter, r *http.Request) { } // TODO - if separator_index != 1 { + if separator_index > 1 { http.Error(w, "Subgroups haven't been implemented yet", http.StatusNotImplemented) return } -- cgit v1.2.3