pkg/http: Add IsRequestAware
method CookieHandler.
Signed-off-by: Mark Laing <mark.laing@canonical.com>
This commit is contained in:
parent
6184521e56
commit
ac4c761df5
1 changed files with 4 additions and 0 deletions
|
@ -117,3 +117,7 @@ func (c *CookieHandler) DeleteCookie(w http.ResponseWriter, name string) {
|
|||
SameSite: c.sameSite,
|
||||
})
|
||||
}
|
||||
|
||||
func (c *CookieHandler) IsRequestAware() bool {
|
||||
return c.secureCookieFunc != nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue