mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-01 02:00:50 +00:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: http: Check the auth string contents and not only the pointer Conflicts: libavformat/http.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
0a6ce255ab
@ -609,7 +609,8 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
|
|||||||
* send Expect: 100-continue to get the 401 response including the
|
* send Expect: 100-continue to get the 401 response including the
|
||||||
* WWW-Authenticate header, or an 100 continue if no auth actually
|
* WWW-Authenticate header, or an 100 continue if no auth actually
|
||||||
* is needed. */
|
* is needed. */
|
||||||
if (*auth && s->auth_state.auth_type == HTTP_AUTH_NONE &&
|
if (auth && *auth &&
|
||||||
|
s->auth_state.auth_type == HTTP_AUTH_NONE &&
|
||||||
s->http_code != 401)
|
s->http_code != 401)
|
||||||
send_expect_100 = 1;
|
send_expect_100 = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user