diff options
Diffstat (limited to 'chromium/third_party/ffmpeg/libavformat/httpauth.c')
-rw-r--r-- | chromium/third_party/ffmpeg/libavformat/httpauth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chromium/third_party/ffmpeg/libavformat/httpauth.c b/chromium/third_party/ffmpeg/libavformat/httpauth.c index 5ca48b9c1de..dbe3eff48f5 100644 --- a/chromium/third_party/ffmpeg/libavformat/httpauth.c +++ b/chromium/third_party/ffmpeg/libavformat/httpauth.c @@ -224,8 +224,11 @@ 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); + + // we are violating the RFC and use "" because all others seem to do that too. if (digest->algorithm[0]) - av_strlcatf(authstr, len, ",algorithm=%s", digest->algorithm); + av_strlcatf(authstr, len, ",algorithm=\"%s\"", digest->algorithm); + if (digest->opaque[0]) av_strlcatf(authstr, len, ",opaque=\"%s\"", digest->opaque); if (digest->qop[0]) { |