From f3bdea4fea1b20084a624d78d538f031a21c52da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Sun, 12 Nov 2017 20:58:27 +0100 Subject: [PATCH] style fix --- Net/src/HTTPClientSession.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Net/src/HTTPClientSession.cpp b/Net/src/HTTPClientSession.cpp index 9dc357967..3f38a6094 100644 --- a/Net/src/HTTPClientSession.cpp +++ b/Net/src/HTTPClientSession.cpp @@ -58,7 +58,7 @@ HTTPClientSession::HTTPClientSession(const StreamSocket& socket): _reconnect(false), _mustReconnect(false), _expectResponseBody(false), - _responseReceived(false) + _responseReceived(false) { setKeepAlive(true); } @@ -102,6 +102,7 @@ HTTPClientSession::HTTPClientSession(const std::string& host, Poco::UInt16 port, { } + HTTPClientSession::HTTPClientSession(const StreamSocket& socket, const ProxyConfig& proxyConfig): HTTPSession(socket), _port(HTTPSession::HTTP_PORT), @@ -114,7 +115,8 @@ HTTPClientSession::HTTPClientSession(const StreamSocket& socket, const ProxyConf { setKeepAlive(true); } - + + HTTPClientSession::~HTTPClientSession() { } @@ -178,7 +180,7 @@ void HTTPClientSession::setProxyUsername(const std::string& username) { _proxyConfig.username = username; } - + void HTTPClientSession::setProxyPassword(const std::string& password) { @@ -260,7 +262,7 @@ std::ostream& HTTPClientSession::sendRequest(HTTPRequest& request) { _pRequestStream = new HTTPOutputStream(*this); request.write(*_pRequestStream); - } + } _lastRequest.update(); return *_pRequestStream; } @@ -314,7 +316,7 @@ std::istream& HTTPClientSession::receiveResponse(HTTPResponse& response) #endif else _pResponseStream = new HTTPInputStream(*this); - + return *_pResponseStream; }