Explorar o código

Fix the bug for real

Colin Powell %!s(int64=2) %!d(string=hai) anos
pai
achega
3e33f6b464
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mopidy_webhooks/frontend.py

+ 1 - 1
mopidy_webhooks/frontend.py

@@ -60,7 +60,7 @@ class WebhooksFrontend(pykka.ThreadingActor, CoreListener):
                 logger.info(f"No token found for Webhook URL: {webhook_url}")
 
             if token:
-                headers["Authorization"] = "Token f{token}"
+                headers["Authorization"] = f"Token {token}"
 
             response = requests.post(
                 webhook_url, json=json.dumps(post_data), headers=headers