diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-08-30 13:18:57 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-08-30 13:18:57 +0000 |
| commit | 19ae8f9d07ba6a8f1d3b6f501a01f9285b6875e9 (patch) | |
| tree | 92e48ab5163aff44b07c84b0ed701d1bf5a2bd8c /src/HttpHeader.cc | |
| parent | 01af9a5df0120e1b8dfaf841ccb29e51d38f0e08 (diff) | |
2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that HTTP request header for XML-RPC request is not
parsed properly.
* src/HttpHeader.cc
* src/HttpHeaderProcessor.cc
Diffstat (limited to 'src/HttpHeader.cc')
| -rw-r--r-- | src/HttpHeader.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index 4ab6234e..73b1dccb 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -33,10 +33,12 @@ */ /* copyright --> */ #include "HttpHeader.h" + +#include <istream> + #include "Range.h" #include "Util.h" #include "A2STR.h" -#include <istream> namespace aria2 { @@ -199,7 +201,7 @@ void HttpHeader::fill(std::istream& in) while(std::getline(in, line)) { line = Util::trim(line); if(line.empty()) { - break; + continue; } std::pair<std::string, std::string> hp; Util::split(hp, line, ':'); |
