mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
e55376a1fd
commit
c134850669
|
@ -224,6 +224,7 @@ static char *make_digest_auth(HTTPAuthState *state, const char *username,
|
|||
av_strlcatf(authstr, len, ", nonce=\"%s\"", digest->nonce);
|
||||
av_strlcatf(authstr, len, ", uri=\"%s\"", uri);
|
||||
av_strlcatf(authstr, len, ", response=\"%s\"", response);
|
||||
|
||||
if (digest->algorithm[0])
|
||||
av_strlcatf(authstr, len, ", algorithm=%s", digest->algorithm);
|
||||
if (digest->opaque[0])
|
||||
|
|
Loading…
Reference in New Issue