startsWith there makes no sense

This commit is contained in:
Emil Lerch 2025-12-18 17:59:04 -08:00
parent 60cede5a8b
commit a172a9a325
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -44,7 +44,7 @@ pub fn handleWeather(
}; };
// Handle special endpoints // Handle special endpoints
if (std.mem.startsWith(u8, location, ":")) { if (location[0] == ':') {
if (std.mem.eql(u8, location, ":help")) { if (std.mem.eql(u8, location, ":help")) {
res.content_type = .TEXT; res.content_type = .TEXT;
res.body = help.help_page; res.body = help.help_page;