]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/httpauth.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavformat / httpauth.c
index 58e0e82ed122e20f1fcbbdfa97f1f03f45e4d11e..2ce54329939a884d6d620d8cf908bfb4f7c0c864 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) {