We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11fa452 + a9ead3b commit d2b55efCopy full SHA for d2b55ef
.gitignore
@@ -0,0 +1,3 @@
1
+*.iml
2
+/.idea/
3
+/target/
src/main/java/me/vzhilin/auth/parser/ChallengeResponseParser.java
@@ -78,14 +78,7 @@ private ChallengeResponse readDigestChallenge(ChallengeResponse challenge) throw
78
if (readIfMatches("stale")) {
79
readWord("=");
80
String word = readUnquotedString();
81
- if (word.equalsIgnoreCase("true")) {
82
- challenge.setStale(true);
83
- } else
84
- if (word.equalsIgnoreCase("false")) {
85
- challenge.setStale(false);
86
- } else {
87
- throw new ParseException("expected: true | false", getPos());
88
- }
+ challenge.setStale(word.equalsIgnoreCase("true") || word.equalsIgnoreCase("\"true\""));
89
} else
90
if (readIfMatches("algorithm")) {
91
0 commit comments