mirror of https://github.com/aria2/aria2
2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that HTTP downloads don't start with old libraries. * src/HttpHeaderProcessor.ccpull/1/head
parent
49409fa7ad
commit
23294a746e
|
@ -1,3 +1,8 @@
|
|||
2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Fixed the bug that HTTP downloads don't start with old libraries.
|
||||
* src/HttpHeaderProcessor.cc
|
||||
|
||||
2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Use empty() instead of size() > 0.
|
||||
|
|
|
@ -64,6 +64,7 @@ void HttpHeaderProcessor::checkHeaderLimit(size_t incomingLength)
|
|||
if((size_t)strm.tellg()+incomingLength > _limit) {
|
||||
throw DlAbortEx("Too large http header");
|
||||
}
|
||||
strm.clear();
|
||||
}
|
||||
|
||||
bool HttpHeaderProcessor::eoh() const
|
||||
|
@ -107,6 +108,7 @@ SharedHandle<HttpHeader> HttpHeaderProcessor::getHttpResponseHeader()
|
|||
httpHeader->setResponseStatus(line.substr(9, 3));
|
||||
httpHeader->setVersion(line.substr(0, 8));
|
||||
httpHeader->fill(strm);
|
||||
strm.clear();
|
||||
return httpHeader;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue