httpauth: Add space after commas in HTTP/RTSP auth header
authorAndrey Utkin <andrey.utkin@corp.bluecherry.net>
Tue, 13 Oct 2015 09:44:37 +0000 (12:44 +0300)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 14 Oct 2015 12:35:34 +0000 (14:35 +0200)
commitc1348506697377b46f844339c178332e3314149a
tree17ed4a213fadb9e730cc111cea508d5e64dd3aeb
parente55376a1fd5abebbb0a082aa20739d58c2260a37
httpauth: Add space after commas in HTTP/RTSP auth header

This fixes access to Grandstream cameras, which return 401 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.

See RFC 2617 (HTTP Auth).

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/httpauth.c