X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=httpinput.cpp;h=275df501f6fb9c92b44d3023091852076595ec40;hp=301aa3f9f81ebfe5c6b5d2f519841e19ceb1bf50;hb=ff78f87ecc83e472f8c649eb0b8503a483e393ff;hpb=861b758382bd863743232da244bc66533658440f diff --git a/httpinput.cpp b/httpinput.cpp index 301aa3f..275df50 100644 --- a/httpinput.cpp +++ b/httpinput.cpp @@ -86,7 +86,7 @@ int HTTPInput::lookup_and_connect(const string &host, const string &port) { addrinfo *ai; int err = getaddrinfo(host.c_str(), port.c_str(), NULL, &ai); - if (err == -1) { + if (err != 0) { log(WARNING, "[%s] Lookup of '%s' failed (%s).", url.c_str(), host.c_str(), gai_strerror(err)); return -1; @@ -264,6 +264,7 @@ void HTTPInput::do_work() request_bytes_sent = 0; response.clear(); pending_data.clear(); + has_metacube_header = false; for (size_t i = 0; i < stream_indices.size(); ++i) { servers->set_header(stream_indices[i], "", ""); }