httpd: use g_ascii_strncasecmp() to compare headers

In HTTP, header names are case insensitive.
This commit is contained in:
Max Kellermann 2009-04-13 19:39:16 +02:00
parent 92ba754fc6
commit 3f81f5b476

View File

@ -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;