diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-29 22:23:41 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-29 22:23:41 +0800 |
| commit | 88508381f52be607093382d7938c27a85b2c15ef (patch) | |
| tree | 9f955f15ce82ce066dcba613a90a21d07d94491e | |
| parent | 2588b4fe1129cdeda932c0d714b863ffbc1b8a8b (diff) | |
ain't no way
| -rw-r--r-- | backend/main.py | 2 |
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 |
