]> git.sesse.net Git - ffmpeg/commitdiff
lavf/http: remove special case for cookies attributes.
authorNicolas George <george@nsup.org>
Sun, 17 Aug 2014 12:24:20 +0000 (14:24 +0200)
committerNicolas George <george@nsup.org>
Sun, 17 Aug 2014 18:07:27 +0000 (20:07 +0200)
With the previous change, unknown attributes are all ignored,
as specified by the RFC.

libavformat/http.c

index bd67645e46250356904df198deb2defd506b8da8..018d25c9d73f4338bf4bc1d99a4de7a6fea29913 100644 (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
             }