fixed bug where custom http headers weren't kept for hls streams

That fix was mentioned by kowalsky here: https://trac.ffmpeg.org/ticket/3024
But unfortunately it wasn't attended by anyone.