X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2FHTTPContentDecode.cxx;h=d5fc519318e2921f1bda0083a655f348f7dd6ce7;hb=3bcd0bafd5fba1eebadfd1cb8a7294d665cf1932;hp=3a6af96e42a23cc48c710995e8f603a2f5f8f7a2;hpb=2f023803e7f0ffec378686f6dd65a40cea99359f;p=simgear.git diff --git a/simgear/io/HTTPContentDecode.cxx b/simgear/io/HTTPContentDecode.cxx index 3a6af96e..d5fc5193 100644 --- a/simgear/io/HTTPContentDecode.cxx +++ b/simgear/io/HTTPContentDecode.cxx @@ -21,7 +21,7 @@ #include #include // rand() -#include +#include // for memset, memcpy #include #include @@ -65,7 +65,6 @@ ContentDecoder::~ContentDecoder() void ContentDecoder::setEncoding(const std::string& encoding) { - std::cout << "setEncoding:" << encoding << std::endl; if (encoding == "gzip") { _contentDeflate = true; _needGZipHeader = true; @@ -139,7 +138,6 @@ void ContentDecoder::receivedBytes(const char* n, size_t s) _inputSize += s; if (_needGZipHeader && !consumeGZipHeader()) { - std::cout << "waiting on GZIP header" << std::endl; // still waiting on the full GZIP header, so done return; } @@ -159,10 +157,7 @@ void ContentDecoder::consumeBytes(size_t consumed) } void ContentDecoder::reallocateInputBuffer(size_t newSize) -{ - std::cout << "reallocate:" << newSize << std::endl; - - +{ _input = (unsigned char*) realloc(_input, newSize); _inputAllocated = newSize; }