From 8f5f2fd3e079c7db254da30a78aeed76fa6c312c Mon Sep 17 00:00:00 2001 From: britov Date: Mon, 26 Oct 2020 13:37:59 +0300 Subject: [PATCH] Fixed empty challenge.qop --- lib/src/digest_authentication.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/digest_authentication.dart b/lib/src/digest_authentication.dart index a1b8a20f..fa0e9c4e 100644 --- a/lib/src/digest_authentication.dart +++ b/lib/src/digest_authentication.dart @@ -122,7 +122,7 @@ class DigestAuthentication { } // 'qop' can contain a list of values (Array). Let's choose just one. - if (challenge.qop != null) { + if (challenge.qop != null && challenge.qop.isNotEmpty) { if (challenge.qop.indexOf('auth-int') > -1) { _qop = 'auth-int'; } else if (challenge.qop.indexOf('auth') > -1) {