Skip to content

Commit

Permalink
lavf/http: Reset compressed header flag, fix http 302 request
Browse files Browse the repository at this point in the history
Fixes ticket #6404.
Fixes ticket #6666.

Signed-off-by: Jacek Jendrzej <satbaby@kawaii.com>
  • Loading branch information
Jacek Jendrzej authored and cehoyos committed Sep 15, 2017
1 parent eea64ef commit e2f8f14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavformat/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
s->willclose = 0;
s->end_chunked_post = 0;
s->end_header = 0;
s->compressed = 0;
if (post && !s->post_data && !send_expect_100) {
/* 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
Expand Down

0 comments on commit e2f8f14

Please sign in to comment.