diff options
author | Martin Storsjö <martin@martin.st> | 2011-11-11 11:21:42 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-11-11 14:07:57 +0200 |
commit | b911518d1c17223aa7fb83ace08b2bd41c203da0 (patch) | |
tree | 29468e43b6e93c65d6f8e03fd4feb36fc399081e /libavformat/httpauth.c | |
parent | b01f5ba2070e022e6cf6c1fa8410367e90e33b60 (diff) | |
download | ffmpeg-b911518d1c17223aa7fb83ace08b2bd41c203da0.tar.gz |
http: Handle proxy authentication
Tested with both Basic and Digest authentication, and tested with
both proxy authentication and authentication for the requested
resource at the same time.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/httpauth.c')
-rw-r--r-- | libavformat/httpauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c index 1dda1ac8f0..c8b8ace3c2 100644 --- a/libavformat/httpauth.c +++ b/libavformat/httpauth.c @@ -87,7 +87,7 @@ static void choose_qop(char *qop, int size) void ff_http_auth_handle_header(HTTPAuthState *state, const char *key, const char *value) { - if (!strcmp(key, "WWW-Authenticate")) { + if (!strcmp(key, "WWW-Authenticate") || !strcmp(key, "Proxy-Authenticate")) { const char *p; if (av_stristart(value, "Basic ", &p) && state->auth_type <= HTTP_AUTH_BASIC) { |