Skip to content

Commit 97ff82c

Browse files
author
Diego Bendersky
committed
missing quotes in Algorithm regex
1 parent 9da83de commit 97ff82c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www_authenticate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func newWwwAuthenticate(s string) *wwwAuthenticate {
2121

2222
var wa = wwwAuthenticate{}
2323

24-
algorithmRegex := regexp.MustCompile(`algorithm=([^ ,]+)`)
24+
algorithmRegex := regexp.MustCompile(`algorithm="([^ ,]+)"`)
2525
algorithmMatch := algorithmRegex.FindStringSubmatch(s)
2626
if algorithmMatch != nil {
2727
wa.Algorithm = algorithmMatch[1]

0 commit comments

Comments
 (0)