mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
Reset chunksize back to zero (= no chunked encoding) after each new open
connection (e.g. a seek). This fixes the theoretical case where a server sends a file first using chunked encoding, and then using non-chunked encoding. Originally committed as revision 23665 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
1 parent
f37246952a
commit
45c611a95b
1 file changed
+1
-1
+1
-1
@@ -152,7 +152,6 @@ static int http_open(URLContext *h, const char *uri, int flags)
|
||||
}
|
||||
h->priv_data = s;
|
||||
s->filesize = -1;
|
||||
s->chunksize = -1;
|
||||
s->is_chunked = 1;
|
||||
s->off = 0;
|
||||
s->init = 0;
|
||||
@@ -331,6 +330,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
|
||||
s->line_count = 0;
|
||||
s->off = 0;
|
||||
s->filesize = -1;
|
||||
s->chunksize = -1;
|
||||
if (post) {
|
||||
/* always use chunked encoding for upload data */
|
||||
s->chunksize = 0;
|
||||
|
||||
Reference in new issue
Block a user