Revert "Update go mod dependencies."

This reverts commit dedbdf63c3.
This commit is contained in:
2024-11-06 11:33:04 +00:00
parent 7dd9205277
commit 31de2c63b2
11 changed files with 86 additions and 45 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,
}
}