diff options
author | Max Kellermann <max@duempel.org> | 2013-10-21 08:42:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-21 08:42:55 +0200 |
commit | 222dc8a239f7578cecdcb21523052140aa1192cf (patch) | |
tree | 3d5577e2d9092277e08de28f20766c01f87cc0ea /src/output | |
parent | 0e4d2e7277bc2adf18dd1e719ec4ce684f86d72b (diff) | |
download | mpd-222dc8a239f7578cecdcb21523052140aa1192cf.tar.gz mpd-222dc8a239f7578cecdcb21523052140aa1192cf.tar.xz mpd-222dc8a239f7578cecdcb21523052140aa1192cf.zip |
Util/ASCII: add StringEqualsCaseASCII() overload with length
Replaces GLib's g_ascii_strncasecmp().
Diffstat (limited to '')
-rw-r--r-- | src/output/HttpdClient.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/HttpdClient.cxx b/src/output/HttpdClient.cxx index 9595e47f6..6d0d468a7 100644 --- a/src/output/HttpdClient.cxx +++ b/src/output/HttpdClient.cxx @@ -20,7 +20,7 @@ #include "config.h" #include "HttpdClient.hxx" #include "HttpdInternal.hxx" -#include "util/fifo_buffer.h" +#include "util/ASCII.hxx" #include "Page.hxx" #include "IcyMetaDataServer.hxx" #include "system/SocketError.hxx" @@ -102,13 +102,13 @@ HttpdClient::HandleLine(const char *line) return true; } - if (g_ascii_strncasecmp(line, "Icy-MetaData: 1", 15) == 0) { + if (StringEqualsCaseASCII(line, "Icy-MetaData: 1", 15)) { /* Send icy metadata */ metadata_requested = metadata_supported; return true; } - if (g_ascii_strncasecmp(line, "transferMode.dlna.org: Streaming", 32) == 0) { + if (StringEqualsCaseASCII(line, "transferMode.dlna.org: Streaming", 32)) { /* Send as dlna */ dlna_streaming_requested = true; /* metadata is not supported by dlna streaming, so disable it */ |