httpd: use g_ascii_strncasecmp() to compare headers
In HTTP, header names are case insensitive.
This commit is contained in:
parent
92ba754fc6
commit
3f81f5b476
@ -208,7 +208,7 @@ httpd_client_handle_line(struct httpd_client *client, const char *line)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strncmp(line, "Icy-MetaData: 1", 15) == 0) {
|
if (g_ascii_strncasecmp(line, "Icy-MetaData: 1", 15) == 0) {
|
||||||
/* Send icy metadata */
|
/* Send icy metadata */
|
||||||
client->metadata_requested = TRUE;
|
client->metadata_requested = TRUE;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user