caronc / apprise-api

A lightweight REST framework that wraps the Apprise Notification Library
https://hub.docker.com/r/caronc/apprise
MIT License
580 stars 50 forks source link

Fix expiry date in theme set-cookie #141

Closed timhawes closed 9 months ago

timhawes commented 9 months ago

Description:

The theme cookie has an invalid expires date:

Set-Cookie:  theme=light; expires=time.struct_time(tm_year=2024, tm_mon=10, tm_mday=19, tm_hour=9, tm_min=22, tm_sec=51, tm_wday=5, tm_yday=293, tm_isdst=0); Path=/

With fix:

Set-Cookie:  theme=light; expires=Sat, 19 Oct 2024 09:22:58 GMT; Max-Age=31536000; Path=/

Checklist

caronc commented 9 months ago

🙏 Thank you!