Revision bc61920d

View differences:

libavformat/http.c
246 246
        p++;
247 247
        while (isspace(*p))
248 248
            p++;
249
        if (!strcmp(tag, "Location")) {
249
        if (!strcasecmp(tag, "Location")) {
250 250
            strcpy(s->location, p);
251 251
            *new_location = 1;
252
        } else if (!strcmp (tag, "Content-Length") && s->filesize == -1) {
252
        } else if (!strcasecmp (tag, "Content-Length") && s->filesize == -1) {
253 253
            s->filesize = atoll(p);
254
        } else if (!strcmp (tag, "Content-Range")) {
254
        } else if (!strcasecmp (tag, "Content-Range")) {
255 255
            /* "bytes $from-$to/$document_size" */
256 256
            const char *slash;
257 257
            if (!strncmp (p, "bytes ", 6)) {
......
261 261
                    s->filesize = atoll(slash+1);
262 262
            }
263 263
            h->is_streamed = 0; /* we _can_ in fact seek */
264
        } else if (!strcmp (tag, "Transfer-Encoding") && !strncasecmp(p, "chunked", 7)) {
264
        } else if (!strcasecmp (tag, "Transfer-Encoding") && !strncasecmp(p, "chunked", 7)) {
265 265
            s->filesize = -1;
266 266
            s->chunksize = 0;
267
        } else if (!strcmp (tag, "WWW-Authenticate")) {
267
        } else if (!strcasecmp (tag, "WWW-Authenticate")) {
268 268
            ff_http_auth_handle_header(&s->auth_state, tag, p);
269
        } else if (!strcmp (tag, "Authentication-Info")) {
269
        } else if (!strcasecmp (tag, "Authentication-Info")) {
270 270
            ff_http_auth_handle_header(&s->auth_state, tag, p);
271
        } else if (!strcmp (tag, "Connection")) {
271
        } else if (!strcasecmp (tag, "Connection")) {
272 272
            if (!strcmp(p, "close"))
273 273
                s->willclose = 1;
274 274
        }

Also available in: Unified diff