Browse Source

Accept incomplete http cookies without domain.

Works around a bug in some servers that apparently send incomplete cookies.
Fixes a part of ticket #2619.

Reviewed-by: Micah Galizia
tags/n2.0
Carl Eugen Hoyos 12 years ago
parent
commit
e9df8f7725
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/http.c

+ 2
- 0
libavformat/http.c View File

@@ -421,6 +421,8 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
cvalue = av_strdup(param);
}
}
if (!cdomain)
cdomain = av_strdup(domain);

// ensure all of the necessary values are valid
if (!cdomain || !cpath || !cvalue) {


Loading…
Cancel
Save