mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
integrated changes from main rep
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// HTTPRequest.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Net/src/HTTPRequest.cpp#10 $
|
||||
// $Id: //poco/1.3/Net/src/HTTPRequest.cpp#3 $
|
||||
//
|
||||
// Library: Net
|
||||
// Package: HTTP
|
||||
@@ -208,6 +208,7 @@ void HTTPRequest::read(std::istream& istr)
|
||||
std::string uri;
|
||||
std::string version;
|
||||
int ch = istr.get();
|
||||
if (ch == eof) throw NoMessageException();
|
||||
while (isspace(ch)) ch = istr.get();
|
||||
if (ch == eof) throw MessageException("No HTTP request header");
|
||||
while (!isspace(ch) && ch != eof && method.length() < MAX_METHOD_LENGTH) { method += (char) ch; ch = istr.get(); }
|
||||
|
Reference in New Issue
Block a user