summaryrefslogtreecommitdiff
path: root/src/HttpResponse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpResponse.cc')
-rw-r--r--src/HttpResponse.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HttpResponse.cc b/src/HttpResponse.cc
index 55a12f67..32e5a934 100644
--- a/src/HttpResponse.cc
+++ b/src/HttpResponse.cc
@@ -82,10 +82,10 @@ void HttpResponse::validateResponse() const
throw new DlAbortEx(EX_INVALID_RANGE_HEADER,
Util::itos(httpRequest->getStartByte(), true).c_str(),
Util::itos(httpRequest->getEndByte(), true).c_str(),
- Util::itos(httpRequest->getEntityLength(), true).c_str(),
+ Util::uitos(httpRequest->getEntityLength(), true).c_str(),
Util::itos(responseRange->getStartByte(), true).c_str(),
Util::itos(responseRange->getEndByte(), true).c_str(),
- Util::itos(responseRange->getEntityLength(), true).c_str());
+ Util::uitos(responseRange->getEntityLength(), true).c_str());
}
}
}
@@ -150,7 +150,7 @@ TransferEncodingHandle HttpResponse::getTransferDecoder() const
return 0;
}
-int64_t HttpResponse::getContentLength() const
+uint64_t HttpResponse::getContentLength() const
{
if(httpHeader.isNull()) {
return 0;
@@ -159,7 +159,7 @@ int64_t HttpResponse::getContentLength() const
}
}
-int64_t HttpResponse::getEntityLength() const
+uint64_t HttpResponse::getEntityLength() const
{
if(httpHeader.isNull()) {
return 0;