[FFmpeg-trac] #6338(undetermined:new): http cookies not set when using proxy
FFmpeg
trac at avcodec.org
Mon May 1 09:18:40 EEST 2017
#6338: http cookies not set when using proxy
-------------------------------------+-------------------------------------
Reporter: vineet156 | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: http, hls, | Resolution:
proxy | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by vineet156):
i found the fix. infact the code already maintains local_path as well path
variables. which are same in case of non-proxy request but differ in case
of proxy request. and for getting cookies, local_path shall be used
always.
so i made following changes,
libavformat/http.c, line: 1097
replaced,
if (!get_cookies(s, &cookies, path, hoststr) && cookies) {
with
if (!get_cookies(s, &cookies, local_path, hoststr) && cookies) {
and cookies work now with proxy as well.
patch file attached. can this be accepted as official fix ?
thank you,
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6338#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list