integrated changes from main rep

This commit is contained in:
Guenter Obiltschnig
2007-02-25 09:17:38 +00:00
parent 95bdb7c51d
commit d6b783cc3b
160 changed files with 168 additions and 160 deletions

View File

@@ -1,7 +1,7 @@
//
// HTTPResponse.cpp
//
// $Id: //poco/Main/Net/src/HTTPResponse.cpp#10 $
// $Id: //poco/1.3/Net/src/HTTPResponse.cpp#2 $
//
// Library: Net
// Package: HTTP
@@ -227,6 +227,7 @@ void HTTPResponse::read(std::istream& istr)
std::string reason;
int ch = istr.get();
if (ch == eof) throw NoMessageException();
while (isspace(ch)) ch = istr.get();
if (ch == eof) throw MessageException("No HTTP response header");
while (!isspace(ch) && ch != eof && version.length() < MAX_VERSION_LENGTH) { version += (char) ch; ch = istr.get(); }