Skip to content

Commit

Permalink
allow doublequotes in cookie values;
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanfinn committed Jun 1, 2023
1 parent 65e9c42 commit cbd4030
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,11 @@ func sanitizeCookieValue(v string) string {
}

func validCookieValueByte(b byte) bool {
return 0x20 <= b && b < 0x7f && b != '"' && b != ';' && b != '\\'
return 0x20 <= b &&
b < 0x7f &&
// b != '"' &&
b != ';' &&
b != '\\'
}

// path-av = "Path=" path-value
Expand Down

0 comments on commit cbd4030

Please sign in to comment.