mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 08:46:41 +01:00
changed exception text
This commit is contained in:
parent
135c10c0f5
commit
ff0e72c187
@ -209,6 +209,7 @@ void HTTPRequest::read(std::istream& istr)
|
|||||||
uri.reserve(64);
|
uri.reserve(64);
|
||||||
version.reserve(16);
|
version.reserve(16);
|
||||||
int ch = istr.get();
|
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 (istr.bad()) throw NetException("Error reading HTTP request header");
|
||||||
if (ch == eof) throw NoMessageException();
|
if (ch == eof) throw NoMessageException();
|
||||||
while (Poco::Ascii::isSpace(ch)) ch = istr.get();
|
while (Poco::Ascii::isSpace(ch)) ch = istr.get();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user