startsWith there makes no sense
This commit is contained in:
parent
60cede5a8b
commit
a172a9a325
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue