Remove some debug output, fix version.h include path
This commit is contained in:
@@ -11,18 +11,13 @@
|
|||||||
#include <simgear/misc/strutils.hxx>
|
#include <simgear/misc/strutils.hxx>
|
||||||
#include <simgear/compiler.h>
|
#include <simgear/compiler.h>
|
||||||
#include <simgear/debug/logstream.hxx>
|
#include <simgear/debug/logstream.hxx>
|
||||||
#include <simgear/version.h>
|
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::stringstream;
|
using std::stringstream;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
using std::cout;
|
|
||||||
using std::cerr;
|
|
||||||
using std::endl;
|
|
||||||
|
|
||||||
namespace simgear
|
namespace simgear
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -75,7 +70,7 @@ public:
|
|||||||
path = "http://" + r->host() + path;
|
path = "http://" + r->host() + path;
|
||||||
}
|
}
|
||||||
|
|
||||||
int requestTime;
|
int requestTime = 0;
|
||||||
headerData << r->method() << " " << path << " HTTP/1.1 " << client->userAgent() << "\r\n";
|
headerData << r->method() << " " << path << " HTTP/1.1 " << client->userAgent() << "\r\n";
|
||||||
headerData << "Host: " << r->host() << "\r\n";
|
headerData << "Host: " << r->host() << "\r\n";
|
||||||
headerData << "X-Time: " << requestTime << "\r\n";
|
headerData << "X-Time: " << requestTime << "\r\n";
|
||||||
@@ -93,7 +88,6 @@ public:
|
|||||||
// TODO - add request body support for PUT, etc operations
|
// TODO - add request body support for PUT, etc operations
|
||||||
|
|
||||||
push(headerData.str().c_str());
|
push(headerData.str().c_str());
|
||||||
cout << "sent request" << endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void collectIncomingData(const char* s, int n)
|
virtual void collectIncomingData(const char* s, int n)
|
||||||
@@ -143,7 +137,6 @@ private:
|
|||||||
|
|
||||||
if (bodyTransferSize > 0) {
|
if (bodyTransferSize > 0) {
|
||||||
state = STATE_GETTING_BODY;
|
state = STATE_GETTING_BODY;
|
||||||
cout << "getting body:" << bodyTransferSize << endl;
|
|
||||||
setByteCount(bodyTransferSize);
|
setByteCount(bodyTransferSize);
|
||||||
} else {
|
} else {
|
||||||
responseComplete();
|
responseComplete();
|
||||||
|
|||||||
Reference in New Issue
Block a user