aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/http.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-10 16:12:32 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-10 16:12:37 +0200
commitd5caf10c4f09a401254cb703d3003be8f94e2fa0 (patch)
treeea9ba563184388cd5878627a655b8f598d916de7 /libavformat/http.c
parente473f7e6595d2787919bf6e7b5bfdd25fa636ce6 (diff)
parente9df8f7725cfe53272877f1d8595a7a0cba853cc (diff)
downloadffmpeg-d5caf10c4f09a401254cb703d3003be8f94e2fa0.tar.gz
Merge remote-tracking branch 'cehoyos/master'
* cehoyos/master: Accept incomplete http cookies without domain. Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 7f33ecaf29..e75ad9e989 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -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) {