diff options
Diffstat (limited to 'src/HttpHeaderProcessor.cc')
| -rw-r--r-- | src/HttpHeaderProcessor.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/HttpHeaderProcessor.cc b/src/HttpHeaderProcessor.cc index 23e97411..51b83fad 100644 --- a/src/HttpHeaderProcessor.cc +++ b/src/HttpHeaderProcessor.cc @@ -34,23 +34,24 @@ /* copyright --> */ #include "HttpHeaderProcessor.h" #include "message.h" -#include "DlRetryEx.h" -#include "DlAbortEx.h" #include "Util.h" void HttpHeaderProcessor::update(const char* data, int32_t length) + throw(DlAbortEx*) { checkHeaderLimit(length); strm.write(data, length); } void HttpHeaderProcessor::update(const string& data) + throw(DlAbortEx*) { checkHeaderLimit(data.size()); strm << data; } void HttpHeaderProcessor::checkHeaderLimit(int32_t incomingLength) + throw(DlAbortEx*) { strm.seekg(0, ios::end); if((int32_t)strm.tellg()+incomingLength > _limit) { @@ -87,6 +88,7 @@ void HttpHeaderProcessor::clear() } pair<string, HttpHeaderHandle> HttpHeaderProcessor::getHttpStatusHeader() + throw(DlRetryEx*) { strm.seekg(0, ios::beg); string line; |
