Commit 3f81f5b4 authored by Max Kellermann's avatar Max Kellermann

httpd: use g_ascii_strncasecmp() to compare headers

In HTTP, header names are case insensitive.
parent 92ba754f
......@@ -208,7 +208,7 @@ httpd_client_handle_line(struct httpd_client *client, const char *line)
return true;
}
if (strncmp(line, "Icy-MetaData: 1", 15) == 0) {
if (g_ascii_strncasecmp(line, "Icy-MetaData: 1", 15) == 0) {
/* Send icy metadata */
client->metadata_requested = TRUE;
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment