From 23294a746e6ef71a0801eb30c295c71984556f7e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 8 Jun 2008 10:32:10 +0000 Subject: 2008-06-08 Tatsuhiro Tsujikawa Fixed the bug that HTTP downloads don't start with old libraries. * src/HttpHeaderProcessor.cc --- src/HttpHeaderProcessor.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/HttpHeaderProcessor.cc') 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 HttpHeaderProcessor::getHttpResponseHeader() httpHeader->setResponseStatus(line.substr(9, 3)); httpHeader->setVersion(line.substr(0, 8)); httpHeader->fill(strm); + strm.clear(); return httpHeader; } -- cgit