style fix

This commit is contained in:
Günter Obiltschnig 2017-11-12 20:58:27 +01:00
parent 010a45b357
commit f3bdea4fea

View File

@ -58,7 +58,7 @@ HTTPClientSession::HTTPClientSession(const StreamSocket& socket):
_reconnect(false), _reconnect(false),
_mustReconnect(false), _mustReconnect(false),
_expectResponseBody(false), _expectResponseBody(false),
_responseReceived(false) _responseReceived(false)
{ {
setKeepAlive(true); setKeepAlive(true);
} }
@ -102,6 +102,7 @@ HTTPClientSession::HTTPClientSession(const std::string& host, Poco::UInt16 port,
{ {
} }
HTTPClientSession::HTTPClientSession(const StreamSocket& socket, const ProxyConfig& proxyConfig): HTTPClientSession::HTTPClientSession(const StreamSocket& socket, const ProxyConfig& proxyConfig):
HTTPSession(socket), HTTPSession(socket),
_port(HTTPSession::HTTP_PORT), _port(HTTPSession::HTTP_PORT),
@ -114,7 +115,8 @@ HTTPClientSession::HTTPClientSession(const StreamSocket& socket, const ProxyConf
{ {
setKeepAlive(true); setKeepAlive(true);
} }
HTTPClientSession::~HTTPClientSession() HTTPClientSession::~HTTPClientSession()
{ {
} }
@ -178,7 +180,7 @@ void HTTPClientSession::setProxyUsername(const std::string& username)
{ {
_proxyConfig.username = username; _proxyConfig.username = username;
} }
void HTTPClientSession::setProxyPassword(const std::string& password) void HTTPClientSession::setProxyPassword(const std::string& password)
{ {
@ -260,7 +262,7 @@ std::ostream& HTTPClientSession::sendRequest(HTTPRequest& request)
{ {
_pRequestStream = new HTTPOutputStream(*this); _pRequestStream = new HTTPOutputStream(*this);
request.write(*_pRequestStream); request.write(*_pRequestStream);
} }
_lastRequest.update(); _lastRequest.update();
return *_pRequestStream; return *_pRequestStream;
} }
@ -314,7 +316,7 @@ std::istream& HTTPClientSession::receiveResponse(HTTPResponse& response)
#endif #endif
else else
_pResponseStream = new HTTPInputStream(*this); _pResponseStream = new HTTPInputStream(*this);
return *_pResponseStream; return *_pResponseStream;
} }