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;