From c1c855868c21c76bd58dc3a8e937234c50409dff Mon Sep 17 00:00:00 2001 From: Juan David Hurtado G Date: Sat, 14 May 2022 17:56:57 -0500 Subject: [PATCH] Fix: Ignore unrecognised parameters Related to #4 --- digest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digest.go b/digest.go index 89caa31..f00bc06 100644 --- a/digest.go +++ b/digest.go @@ -119,7 +119,7 @@ func parseChallenge(input string) (*challenge, error) { //TODO(gavaletz) should be an array of strings? c.Qop = strings.Trim(r[1], qs) default: - return nil, ErrBadChallenge + continue // any unrecognised parameters should be ignored } } return c, nil