Revert "Update vendored modules."

This reverts commit 5aa838c669.
This commit is contained in:
2025-01-07 13:19:41 +00:00
parent 5aa838c669
commit 8512ad6d68
9 changed files with 69 additions and 37 deletions
+21
View File
@@ -0,0 +1,21 @@
//go:build go1.11
// +build go1.11
package sessions
import "net/http"
// newCookieFromOptions returns an http.Cookie with the options set.
func newCookieFromOptions(name, value string, options *Options) *http.Cookie {
return &http.Cookie{
Name: name,
Value: value,
Path: options.Path,
Domain: options.Domain,
MaxAge: options.MaxAge,
Secure: options.Secure,
HttpOnly: options.HttpOnly,
SameSite: options.SameSite,
}
}