From 8efb9fb3052e2c01c2e6cdbafa77711347557455 Mon Sep 17 00:00:00 2001 From: logicog Date: Sat, 11 Oct 2025 11:35:13 +0200 Subject: [PATCH] Fix counter GET --- httpd/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpd/httpd.c b/httpd/httpd.c index b376399..98f0d24 100644 --- a/httpd/httpd.c +++ b/httpd/httpd.c @@ -419,7 +419,7 @@ void httpd_appcall(void) } else if (!strcmp(q, "/vlan.json")) { parse_short(q + 15); send_vlan(short_parsed); - } else if (!strcmp(q, "/counters.json")) { + } else if (is_word(q, "/counters.json")) { send_counters(q[19]-'0'); } else { send_not_found();