fixed bug where ffmpeg doesn't keep custom http headers when playing a hls stream

fix taken from here: https://trac.ffmpeg.org/ticket/3024