summaryrefslogtreecommitdiff
path: root/src/HttpHeaderProcessor.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-06-08 10:32:10 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-06-08 10:32:10 +0000
commit23294a746e6ef71a0801eb30c295c71984556f7e (patch)
tree30a7630701775a419d42a2e7a50fbf75559a9f14 /src/HttpHeaderProcessor.cc
parent49409fa7ad96748f8dbffb7f69bced6b72f3d61c (diff)
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
Diffstat (limited to 'src/HttpHeaderProcessor.cc')
-rw-r--r--src/HttpHeaderProcessor.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HttpHeaderProcessor.cc b/src/HttpHeaderProcessor.cc
index 9dec5099..bf35d697 100644
--- a/src/HttpHeaderProcessor.cc
+++ b/src/HttpHeaderProcessor.cc
@@ -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;
}