Explorar el Código

Fix un-interpolated token

Colin Powell hace 2 años
padre
commit
a140140322
Se han modificado 1 ficheros con 1 adiciones y 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 {token}"
+                headers["Authorization"] = "Token f{token}"
 
             response = requests.post(
                 webhook_url, json=json.dumps(post_data), headers=headers