1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavf/http: remove special case for cookies attributes.

With the previous change, unknown attributes are all ignored,
as specified by the RFC.
This commit is contained in:
Nicolas George 2014-08-17 14:24:20 +02:00
parent 481cbc5ad5
commit 4bebce0617

View File

@ -578,11 +578,6 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
int leading_dot = (param[7] == '.');
av_free(cdomain);
cdomain = av_strdup(&param[7+leading_dot]);
} else if (!av_strncasecmp("secure", param, 6) ||
!av_strncasecmp("comment", param, 7) ||
!av_strncasecmp("max-age", param, 7) ||
!av_strncasecmp("version", param, 7)) {
// ignore Comment, Max-Age, Secure and Version
} else {
// ignore unknown attributes
}