Skip to content

Commit cca8288

Browse files
authored
Merge pull request #9 from jeremyrumpf/default-algorithm
Add default algorithm of MD5 in readDigestChallenge() if not algorith…
2 parents e219de4 + 4a808ec commit cca8288

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/me/vzhilin/auth/parser/ChallengeResponseParser.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ private ChallengeResponse readDigestChallenge(ChallengeResponse challenge) throw
137137
readWord(",");
138138
}
139139
} while (hasNext());
140+
141+
if (challenge.getAlgorithm() == null) {
142+
challenge.addAlgorithm(DigestAlgorithm.MD5);
143+
}
144+
140145
return challenge;
141146
}
142147
}

0 commit comments

Comments
 (0)