changeset 6151:8634f4b534fc libavformat

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.
author rbultje
date Sun, 20 Jun 2010 21:41:02 +0000
parents 6b770ef6cbea
children b9dee5077174
files http.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/http.c	Sun Jun 20 21:38:16 2010 +0000
+++ b/http.c	Sun Jun 20 21:41:02 2010 +0000
@@ -152,7 +152,6 @@
     }
     h->priv_data = s;
     s->filesize = -1;
-    s->chunksize = -1;
     s->is_chunked = 1;
     s->off = 0;
     s->init = 0;
@@ -331,6 +330,7 @@
     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;