X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=httpinput.cpp;h=68b91708e7b3059eeac08d3d62088daae2d90aa4;hp=c975a2497007c1d45605ce73103f5405be4c78ed;hb=9bb62cbda887f69e570a3ea0fd28b564c5adc2c9;hpb=afb6264b5c56ce9e8c85b336bd247caa55b97478 diff --git a/httpinput.cpp b/httpinput.cpp index c975a24..68b9170 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -79,13 +79,6 @@ HTTPInput::HTTPInput(const InputProto &serialized) string protocol; parse_url(url, &protocol, &host, &port, &path); // Don't care if it fails. - // Older versions stored the extra \r\n in the HTTP header. - // Strip it if we find it. - if (http_header.size() >= 4 && - memcmp(http_header.data() + http_header.size() - 4, "\r\n\r\n", 4) == 0) { - http_header.resize(http_header.size() - 2); - } - pthread_mutex_init(&stats_mutex, NULL); stats.url = url; stats.bytes_received = serialized.bytes_received();