Skip to content

Commit 97ba13d

Browse files
committed
Add missing algorithm
1 parent 4a0abd0 commit 97ba13d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/ning/http/client/Realm.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,10 @@ public RealmBuilder parseProxyAuthenticateHeader(String headerLine) {
519519
setRealmName(match(headerLine, "realm"));
520520
setNonce(match(headerLine, "nonce"));
521521
setOpaque(match(headerLine, "opaque"));
522-
// FIXME what about algorithm and opaque?
522+
String algorithm = match(headerLine, "algorithm");
523+
if (isNonEmpty(algorithm)) {
524+
setAlgorithm(algorithm);
525+
}
523526
setQop(match(headerLine, "qop"));
524527
if (isNonEmpty(getNonce())) {
525528
setScheme(AuthScheme.DIGEST);

0 commit comments

Comments
 (0)