From 82fda0be94f8cea98e5043ea7b2d5e765b4e7ff7 Mon Sep 17 00:00:00 2001 From: Rich Oberholtzer Date: Thu, 9 Apr 2020 22:32:37 -0400 Subject: [PATCH] added contenty type --- r0b3bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/r0b3bot.py b/r0b3bot.py index 2273475..e4cb98b 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -48,9 +48,10 @@ OCTOPRINT_IP_ADDRESS = config.get('bot-config', 'octoprint_ip_address') DISCORD_AUTH_TOKEN = config.get('bot-config', 'discord_auth_token') STATPING_URL = config.get('bot-config', 'statping_url') STATPING_API_KEY = config.get('bot-config', 'statping_api_key') -statpingURL = STATPING_URL + "/api/services" +statpingURL = STATPING_URL + "/api/services/" statpingHEADERS = { - 'Authorization': f"Bearer {STATPING_API_KEY}" + 'Authorization': f"Bearer {STATPING_API_KEY}", + 'content-type': 'application/json', } # Printing configuration details to console