fixed #468: HTTPClientSession/HTTPResponse not forwarding exceptions

This commit is contained in:
Guenter Obiltschnig
2014-11-19 21:56:42 +01:00
parent 88b203f483
commit bd9d051e46
3 changed files with 2 additions and 6 deletions

View File

@@ -209,7 +209,6 @@ void HTTPRequest::read(std::istream& istr)
uri.reserve(64);
version.reserve(16);
int ch = istr.get();
if (istr.bad()) throw NetException("Network failure while reading HTTP request header");
if (istr.bad()) throw NetException("Error reading HTTP request header");
if (ch == eof) throw NoMessageException();
while (Poco::Ascii::isSpace(ch)) ch = istr.get();