Skip to content

Commit 93573f5

Browse files
author
Mishanya
authored
Fixed empty challenge.qop (#143)
1 parent ffb59d0 commit 93573f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/digest_authentication.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class DigestAuthentication {
122122
}
123123

124124
// 'qop' can contain a list of values (Array). Let's choose just one.
125-
if (challenge.qop != null) {
125+
if (challenge.qop != null && challenge.qop.isNotEmpty) {
126126
if (challenge.qop.indexOf('auth-int') > -1) {
127127
_qop = 'auth-int';
128128
} else if (challenge.qop.indexOf('auth') > -1) {

0 commit comments

Comments
 (0)