diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-09-03 13:56:40 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-09-03 13:56:40 +0200 |
commit | 8f0bd1d9bad5b8aa42b5b4cec103cc4afed5eab6 (patch) | |
tree | 447ce5238c37023db59eb0f96a2018bf6ae721a0 /libavformat/httpauth.c | |
parent | 91842005fe793f0b8390a6f97ea71d57915dfece (diff) | |
download | ffmpeg-8f0bd1d9bad5b8aa42b5b4cec103cc4afed5eab6.tar.gz |
lavf/httpauth: Do case-insensitive http header checks.
Tested by trac user NTAuthority.
Fixes ticket #5786.
Diffstat (limited to 'libavformat/httpauth.c')
-rw-r--r-- | libavformat/httpauth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c index 18cf36bcfe..2d42ab2190 100644 --- a/libavformat/httpauth.c +++ b/libavformat/httpauth.c @@ -90,7 +90,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") || !strcmp(key, "Proxy-Authenticate")) { + if (!av_strcasecmp(key, "WWW-Authenticate") || !av_strcasecmp(key, "Proxy-Authenticate")) { const char *p; if (av_stristart(value, "Basic ", &p) && state->auth_type <= HTTP_AUTH_BASIC) { @@ -112,7 +112,7 @@ void ff_http_auth_handle_header(HTTPAuthState *state, const char *key, if (!av_strcasecmp(state->digest_params.stale, "true")) state->stale = 1; } - } else if (!strcmp(key, "Authentication-Info")) { + } else if (!av_strcasecmp(key, "Authentication-Info")) { ff_parse_key_value(value, (ff_parse_key_val_cb) handle_digest_update, state); } |