X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhttpauth.c;h=2d42ab2190c8c4e9b637d4e8240c7e1618ff0887;hb=575e8d11f1ebba9f3d9076862b099b7f94e4eb4a;hp=18cf36bcfece25c4f86117f444212c2608fd4bce;hpb=8c7932884d09bc580036640453fd6b7ad4dd77b4;p=ffmpeg diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c index 18cf36bcfec..2d42ab2190c 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); }