Minor cleanup on connection request authentication code.

This commit is contained in:
Zaid Abdulla committed 2013-09-12 08:56:12 +03:00
1 parent 3c7f554264
commit a8ee773a39
2 files changed
+8 -6

No files matched your search

+3 -2
View File
@@ -54,8 +54,9 @@ exports.digest = (username, password, uri, httpMethod, body, authHeader) ->
authString += ",realm=\"#{authHeader.realm}\""
authString += ",nonce=\"#{authHeader.nonce}\""
authString += ",uri=\"#{uri}\""
authString += ",qop=\"#{qop}\""
authString += ",nc=\"#{nc}\""
authString += ",algorithm=#{authHeader.algorithm}" if authHeader.algorithm?
authString += ",qop=#{qop}"
authString += ",nc=#{nc}"
authString += ",cnonce=\"#{cnonce}\""
authString += ",response=\"#{response}\""
authString += ",opaque=\"#{authHeader.opaque}\""