🐛 Fixes server requests
All checks were successful
Gitea Build Action / build-go (push) Successful in 27s
Gitea Build Action / build-nuxt (push) Successful in 10m40s

This commit is contained in:
Daniel Svitan
2025-06-07 15:49:34 +02:00
parent cf35326bf2
commit 53722bdf18
4 changed files with 25 additions and 18 deletions

View File

@@ -98,7 +98,7 @@ class App:
try:
r = urequests.post(
f"{self.server}/opened",
headers={"Authorization": self.token, "Content-Type": "application/json"},
headers={"Authorization": f"Bearer {self.token}", "Content-Type": "application/json"},
data=raw
)
print(f"State updated [{r.status_code}] {r.content.decode()}")