X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2FHTTPRequest.cxx;h=6b06785ad00bf57d79fb12e77b971a9475362138;hb=72bb9f4d5d6d861902a5779381e4ebe977db1df1;hp=63bae9650a20bd4a3867814200731c53bceefa42;hpb=3f9b6d632eb263f13ca1c2e4beae833f9eab3a0a;p=simgear.git diff --git a/simgear/io/HTTPRequest.cxx b/simgear/io/HTTPRequest.cxx index 63bae965..6b06785a 100644 --- a/simgear/io/HTTPRequest.cxx +++ b/simgear/io/HTTPRequest.cxx @@ -366,23 +366,17 @@ void Request::setReadyState(ReadyState state) } //------------------------------------------------------------------------------ -void Request::abort() -{ - abort("Request aborted."); -} - -//---------------------------------------------------------------------------- -void Request::abort(const std::string& reason) +bool Request::closeAfterComplete() const { - setFailure(-1, reason); - _willClose = true; + // for non HTTP/1.1 connections, assume server closes + return _willClose || (_responseVersion != HTTP_1_1); } //------------------------------------------------------------------------------ -bool Request::closeAfterComplete() const + +void Request::setCloseAfterComplete() { - // for non HTTP/1.1 connections, assume server closes - return _willClose || (_responseVersion != HTTP_1_1); + _willClose = true; } //------------------------------------------------------------------------------