From a172a9a3256cae157435a217433b678e75f28a03 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Thu, 18 Dec 2025 17:59:04 -0800 Subject: [PATCH] startsWith there makes no sense --- src/http/handler.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/handler.zig b/src/http/handler.zig index 6d8122d..c51df40 100644 --- a/src/http/handler.zig +++ b/src/http/handler.zig @@ -44,7 +44,7 @@ pub fn handleWeather( }; // Handle special endpoints - if (std.mem.startsWith(u8, location, ":")) { + if (location[0] == ':') { if (std.mem.eql(u8, location, ":help")) { res.content_type = .TEXT; res.body = help.help_page;