Add vendored dependencies.

This commit is contained in:
2024-07-24 14:33:07 +01:00
parent 2fbeb9b02d
commit cf66d988b7
55 changed files with 4769 additions and 96 deletions
+20
View File
@@ -0,0 +1,20 @@
//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,
}
}