diff options
author | Max Kellermann <max@duempel.org> | 2009-04-13 19:39:16 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-04-13 19:39:16 +0200 |
commit | 3f81f5b47686a4bb21cb770e79f6c7662ac165e9 (patch) | |
tree | c0970ac41fe9b622d691f7095ea2f0830d535c98 /src/output | |
parent | 92ba754fc67b084202c1a1c7a750fa4f2133418c (diff) | |
download | mpd-3f81f5b47686a4bb21cb770e79f6c7662ac165e9.tar.gz mpd-3f81f5b47686a4bb21cb770e79f6c7662ac165e9.tar.xz mpd-3f81f5b47686a4bb21cb770e79f6c7662ac165e9.zip |
httpd: use g_ascii_strncasecmp() to compare headers
In HTTP, header names are case insensitive.
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/httpd_client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/httpd_client.c b/src/output/httpd_client.c index efdb9b190..c2990e76f 100644 --- a/src/output/httpd_client.c +++ b/src/output/httpd_client.c @@ -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; |