| 901 | } |
| 902 | |
| 903 | static int parse_location(HTTPContext *s, const char *p) |
| 904 | { |
| 905 | char redirected_location[MAX_URL_SIZE]; |
| 906 | ff_make_absolute_url(redirected_location, sizeof(redirected_location), |
| 907 | s->location, p); |
| 908 | av_freep(&s->new_location); |
| 909 | s->new_location = av_strdup(redirected_location); |
| 910 | if (!s->new_location) |
| 911 | return AVERROR(ENOMEM); |
| 912 | return 0; |
| 913 | } |
| 914 | |
| 915 | /* "bytes $from-$to/$document_size" */ |
| 916 | static void parse_content_range(URLContext *h, const char *p) |
no test coverage detected