diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-19 01:06:50 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-19 01:06:50 +0800 |
commit | c96d2ab95a620959ac72dbdfeed863c348291518 (patch) | |
tree | e34aa1c243855b54a93e9bdc897e5509b2418840 /http_server.go | |
parent | url.go: Reformat (diff) | |
download | forge-c96d2ab95a620959ac72dbdfeed863c348291518.tar.gz forge-c96d2ab95a620959ac72dbdfeed863c348291518.tar.zst forge-c96d2ab95a620959ac72dbdfeed863c348291518.zip |
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.
Diffstat (limited to 'http_server.go')
-rw-r--r-- | http_server.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |