mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
http2: support > 64bit sized uploads
... by making sure we don't count down the "upload left" counter when the uploaded size is unknown and then it can be allowed to continue forever. Fixes #996
This commit is contained in:
parent
af2d679e14
commit
85033bcfcc
@ -945,6 +945,7 @@ static ssize_t data_source_read_callback(nghttp2_session *session,
|
||||
memcpy(buf, stream->upload_mem, nread);
|
||||
stream->upload_mem += nread;
|
||||
stream->upload_len -= nread;
|
||||
if(data_s->state.infilesize != -1)
|
||||
stream->upload_left -= nread;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user