summaryrefslogtreecommitdiff
path: root/net/http/http_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/http/http_util.cc')
-rw-r--r--net/http/http_util.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_util.cc b/net/http/http_util.cc
index f654a996..0c61d4c5 100644
--- a/net/http/http_util.cc
+++ b/net/http/http_util.cc
@@ -439,12 +439,19 @@ std::string HttpUtil::Quote(const std::string& str) {
int HttpUtil::LocateStartOfStatusLine(const char* buf, int buf_len) {
const int slop = 4;
const int http_len = 4;
+#ifdef ANDROID
+ const int icy_len = 3;
+#endif
if (buf_len >= http_len) {
int i_max = std::min(buf_len - http_len, slop);
for (int i = 0; i <= i_max; ++i) {
if (LowerCaseEqualsASCII(buf + i, buf + i + http_len, "http"))
return i;
+#ifdef ANDROID
+ if (LowerCaseEqualsASCII(buf + i, buf + i + icy_len, "icy"))
+ return i;
+#endif
}
}
return -1; // Not found