From: James Turner Date: Tue, 19 Jul 2011 13:34:07 +0000 (+0100) Subject: Remove some debug output, fix version.h include path X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=20ac2dcd044c418de5819b51cccb1dcf4c073041;p=simgear.git Remove some debug output, fix version.h include path --- diff --git a/simgear/io/HTTPClient.cxx b/simgear/io/HTTPClient.cxx index fb8b256b..e654ab02 100644 --- a/simgear/io/HTTPClient.cxx +++ b/simgear/io/HTTPClient.cxx @@ -11,18 +11,13 @@ #include #include #include -#include + +#include "version.h" using std::string; using std::stringstream; using std::vector; -#include - -using std::cout; -using std::cerr; -using std::endl; - namespace simgear { @@ -75,7 +70,7 @@ public: path = "http://" + r->host() + path; } - int requestTime; + int requestTime = 0; headerData << r->method() << " " << path << " HTTP/1.1 " << client->userAgent() << "\r\n"; headerData << "Host: " << r->host() << "\r\n"; headerData << "X-Time: " << requestTime << "\r\n"; @@ -93,7 +88,6 @@ public: // TODO - add request body support for PUT, etc operations push(headerData.str().c_str()); - cout << "sent request" << endl; } virtual void collectIncomingData(const char* s, int n) @@ -143,7 +137,6 @@ private: if (bodyTransferSize > 0) { state = STATE_GETTING_BODY; - cout << "getting body:" << bodyTransferSize << endl; setByteCount(bodyTransferSize); } else { responseComplete();