Ticket #5786: patchhttpauth.diff

File patchhttpauth.diff, 1.1 KB (added by Carl Eugen Hoyos, 10 years ago)
  • libavformat/httpauth.c

    diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c
    index 18cf36b..2d42ab2 100644
    a b static void choose_qop(char *qop, int size)  
    9090void ff_http_auth_handle_header(HTTPAuthState *state, const char *key,
    9191                                const char *value)
    9292{
    93     if (!strcmp(key, "WWW-Authenticate") || !strcmp(key, "Proxy-Authenticate")) {
     93    if (!av_strcasecmp(key, "WWW-Authenticate") || !av_strcasecmp(key, "Proxy-Authenticate")) {
    9494        const char *p;
    9595        if (av_stristart(value, "Basic ", &p) &&
    9696            state->auth_type <= HTTP_AUTH_BASIC) {
    void ff_http_auth_handle_header(HTTPAuthState *state, const char *key,  
    112112            if (!av_strcasecmp(state->digest_params.stale, "true"))
    113113                state->stale = 1;
    114114        }
    115     } else if (!strcmp(key, "Authentication-Info")) {
     115    } else if (!av_strcasecmp(key, "Authentication-Info")) {
    116116        ff_parse_key_value(value, (ff_parse_key_val_cb) handle_digest_update,
    117117                           state);
    118118    }