mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Add configurable HTTPS flag for secure cookie flag
This commit is contained in:
parent
a63105e13b
commit
7c19febd73
8 changed files with 33 additions and 24 deletions
|
@ -36,11 +36,6 @@ func (r *Request) File(name string) (multipart.File, *multipart.FileHeader, erro
|
|||
return r.request.FormFile(name)
|
||||
}
|
||||
|
||||
// IsHTTPS returns if the request is made over HTTPS.
|
||||
func (r *Request) IsHTTPS() bool {
|
||||
return r.request.URL.Scheme == "https"
|
||||
}
|
||||
|
||||
// Cookie returns the cookie value.
|
||||
func (r *Request) Cookie(name string) string {
|
||||
cookie, err := r.request.Cookie(name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue