]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/httpauth.c
lavf: rename AVInputFormat.value to raw_codec_id.
[ffmpeg] / libavformat / httpauth.c
index 1dda1ac8f034d6a034a18bdd3ebb565f7a2ca895..4383585db14b064ff5d7db9c7e596d37cf7163ba 100644 (file)
@@ -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) {
@@ -265,4 +265,3 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth,
     }
     return authstr;
 }
-