Browse Source

lavf/http: Reset compressed header flag, fix http 302 request

Fixes ticket #6404.
Fixes ticket #6666.

Signed-off-by: Jacek Jendrzej <satbaby@kawaii.com>
tags/n3.4
Jacek Jendrzej Carl Eugen Hoyos 7 years ago
parent
commit
e2f8f14052
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/http.c

+ 1
- 0
libavformat/http.c View File

@@ -1248,6 +1248,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
s->willclose = 0; s->willclose = 0;
s->end_chunked_post = 0; s->end_chunked_post = 0;
s->end_header = 0; s->end_header = 0;
s->compressed = 0;
if (post && !s->post_data && !send_expect_100) { if (post && !s->post_data && !send_expect_100) {
/* Pretend that it did work. We didn't read any header yet, since /* Pretend that it did work. We didn't read any header yet, since
* we've still to send the POST data, but the code calling this * we've still to send the POST data, but the code calling this


Loading…
Cancel
Save