Skip to content

Commit b19c9c3

Browse files
committed
according to rfc2617, nc-value = 8LHEX
Change-Id: I8646fd8d68cfa4786ee6fc24a757b2af93955c4b
1 parent 949fc0e commit b19c9c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/net/http/RequestHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ private String computeDigestAuthResponse(String username,
308308
String A2 = mMethod + ":" + mUrl;
309309

310310
// because we do not preemptively send authorization headers, nc is always 1
311-
String nc = "000001";
311+
String nc = "00000001";
312312
String cnonce = computeCnonce();
313313
String digest = computeDigest(A1, A2, nonce, QOP, nc, cnonce);
314314

0 commit comments

Comments
 (0)