pkg/http: Add IsRequestAware method CookieHandler.

Signed-off-by: Mark Laing <mark.laing@canonical.com>
This commit is contained in:
Mark Laing 2025-06-04 10:17:10 +01:00
parent 6184521e56
commit ac4c761df5
No known key found for this signature in database
GPG key ID: D9277AD9F18400E0

View file

@ -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
}