summaryrefslogtreecommitdiff
path: root/backend/main.py
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-12-29 22:23:41 +0800
committeraltaf-creator <dev@altafcreator.com>2025-12-29 22:23:41 +0800
commit88508381f52be607093382d7938c27a85b2c15ef (patch)
tree9f955f15ce82ce066dcba613a90a21d07d94491e /backend/main.py
parent2588b4fe1129cdeda932c0d714b863ffbc1b8a8b (diff)
ain't no way
Diffstat (limited to 'backend/main.py')
-rw-r--r--backend/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/main.py b/backend/main.py
index aed27a3..f52b91c 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -456,6 +456,6 @@ def uri_to_information(data: InformationRequestData, response: fastapi.Response,
# --- subscribe
@app.post("/notif_subscribe")
def notif_subscribe(data: notif.PushSubscriptionData, response: fastapi.Response):
- endpoint = notif.subscribe(data)
+ endpoint = notif.subscribe(data)[1:-1]
response.set_cookie(key="subscription_endpoint", value=endpoint, secure=True, max_age=COOKIE_MAX_AGE)#, domain="backend.laundryweb.altafcreator.com", samesite="none", secure=True)
response.status_code = fastapi.status.HTTP_200_OK