Merge pull request #691 from ZoneMinder/rtsp_auth_fixes
this fixes Digest Auth for the mjpeg stream on a TV-IP302PI
This commit is contained in:
commit
92b3cdbadb
|
@ -114,9 +114,10 @@ std::string Authenticator::getAuthHeader(std::string method, std::string uri)
|
||||||
if ( ! fQop.empty() ) {
|
if ( ! fQop.empty() ) {
|
||||||
result += ", qop=" + fQop;
|
result += ", qop=" + fQop;
|
||||||
result += ", nc=" + stringtf("%08x",nc);
|
result += ", nc=" + stringtf("%08x",nc);
|
||||||
result += ", cnonce=" + fCnonce;
|
result += ", cnonce=\"" + fCnonce + "\"";
|
||||||
}
|
}
|
||||||
result += ", response=\"" + computeDigestResponse(method, uri) + "\"";
|
result += ", response=\"" + computeDigestResponse(method, uri) + "\"";
|
||||||
|
result += ", algorithm=\"MD5\"";
|
||||||
|
|
||||||
//Authorization: Digest username="zm",
|
//Authorization: Digest username="zm",
|
||||||
// realm="NC-336PW-HD-1080P",
|
// realm="NC-336PW-HD-1080P",
|
||||||
|
|
Loading…
Reference in New Issue