avformat/httpauth: Add space after commas in HTTP/RTSP auth header
authorAndrey Utkin <andrey.utkin@corp.bluecherry.net>
Thu, 1 Oct 2015 10:56:31 +0000 (13:56 +0300)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 6 Oct 2015 22:10:16 +0000 (00:10 +0200)
commitfdb32838723effb4560a345013387ea37b85ff20
treeb58f07d4f2a1463ebcdc5b9db16ca54ab5dd741e
parentac74e857a26583f67d5518c805cfc23f2a482f2b
avformat/httpauth: Add space after commas in HTTP/RTSP auth header

This fixes access to Grandstream cameras, which return 401 to ffmpeg
otherwise.
VLC sends Authorization: header with spaces between parameters, and it
is known to work with Grandstream devices and broad range of other HTTP
and RTSP servers, so author considers switching to such behaviour safe.
Just for record - RFC 2617 (HTTP Auth) does not specify the need in
spaces, so this is not a bug of FFmpeg.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/httpauth.c