diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-07 23:28:30 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-07 23:28:30 -0600 |
| commit | fab3353a96af04f8da2ee534ec9184e267378721 (patch) | |
| tree | 698067d76d5ad9fb7d707fb19eec754253bbb48c /pkg | |
| parent | 047648932d901194956289df59fca0a4b260d084 (diff) | |
feat: fallback to unsigned value
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/web/cookie.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/web/cookie.go b/pkg/web/cookie.go index bb91c2b..d8ba658 100644 --- a/pkg/web/cookie.go +++ b/pkg/web/cookie.go @@ -34,7 +34,7 @@ func NewCookie(name, value string, options ...x.Option[*http.Cookie]) *http.Cook func withSignedValue(value string) x.Option[*http.Cookie] { signature, err := Signer.Sign([]byte(value)) if err != nil { - return nil + return cookie.WithValue(value) } return cookie.WithValue(fmt.Sprintf( "%v%v%v", |
