Commit 4f808a43 authored by rbultje's avatar rbultje

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.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23665 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5c1cb327
...@@ -152,7 +152,6 @@ static int http_open(URLContext *h, const char *uri, int flags) ...@@ -152,7 +152,6 @@ static int http_open(URLContext *h, const char *uri, int flags)
} }
h->priv_data = s; h->priv_data = s;
s->filesize = -1; s->filesize = -1;
s->chunksize = -1;
s->is_chunked = 1; s->is_chunked = 1;
s->off = 0; s->off = 0;
s->init = 0; s->init = 0;
...@@ -331,6 +330,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr, ...@@ -331,6 +330,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
s->line_count = 0; s->line_count = 0;
s->off = 0; s->off = 0;
s->filesize = -1; s->filesize = -1;
s->chunksize = -1;
if (post) { if (post) {
/* always use chunked encoding for upload data */ /* always use chunked encoding for upload data */
s->chunksize = 0; s->chunksize = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment