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
pull/1/head
Tatsuhiro Tsujikawa 2008-06-08 10:32:10 +00:00
parent 49409fa7ad
commit 23294a746e
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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;
}