From c96d2ab95a620959ac72dbdfeed863c348291518 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Wed, 19 Feb 2025 01:06:50 +0800 Subject: [PATCH] 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 +- diff --git a/http_server.go b/http_server.go index c17bc6fa87244324ce2c86154ed26843210367b0..2bd345c29568239d3e497f1a46dc93a404f7f3ec 100644 --- a/http_server.go +++ b/http_server.go @@ -84,7 +84,7 @@ } } // TODO - if separator_index != 1 { + if separator_index > 1 { http.Error(w, "Subgroups haven't been implemented yet", http.StatusNotImplemented) return } -- 2.48.1