mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
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
This commit is contained in:
parent
9908607363
commit
e9df8f7725
@ -421,6 +421,8 @@ static int get_cookies(HTTPContext *s, char **cookies, const char *path,
|
|||||||
cvalue = av_strdup(param);
|
cvalue = av_strdup(param);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!cdomain)
|
||||||
|
cdomain = av_strdup(domain);
|
||||||
|
|
||||||
// ensure all of the necessary values are valid
|
// ensure all of the necessary values are valid
|
||||||
if (!cdomain || !cpath || !cvalue) {
|
if (!cdomain || !cpath || !cvalue) {
|
||||||
|
Loading…
Reference in New Issue
Block a user