HttpRequest: use off_t for reply content size
Fixes #15850. Change-Id: Ic5d64ecba92306cbe798c94ac8e4a7626125e09b Reviewed-on: https://review.haiku-os.org/c/haiku/+/2464 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
d12bb8b148
commit
f4fce2fd2e
@ -570,8 +570,8 @@ BHttpRequest::_MakeRequest()
|
||||
bool decompress = false;
|
||||
status_t readError = B_OK;
|
||||
ssize_t bytesRead = 0;
|
||||
ssize_t bytesReceived = 0;
|
||||
ssize_t bytesTotal = 0;
|
||||
off_t bytesReceived = 0;
|
||||
off_t bytesTotal = 0;
|
||||
size_t previousBufferSize = 0;
|
||||
off_t bytesUnpacked = 0;
|
||||
char* inputTempBuffer = new(std::nothrow) char[kHttpBufferSize];
|
||||
@ -649,7 +649,7 @@ BHttpRequest::_MakeRequest()
|
||||
|
||||
int32 index = fHeaders.HasHeader("Content-Length");
|
||||
if (index != B_ERROR)
|
||||
bytesTotal = atoi(fHeaders.HeaderAt(index).Value());
|
||||
bytesTotal = atoll(fHeaders.HeaderAt(index).Value());
|
||||
else
|
||||
bytesTotal = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user