From 20ac2dcd044c418de5819b51cccb1dcf4c073041 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 19 Jul 2011 14:34:07 +0100 Subject: [PATCH] Remove some debug output, fix version.h include path --- simgear/io/HTTPClient.cxx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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(); -- 2.39.5