From b1a788725eba008c3907e235ba18ec854db89a63 Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Wed, 7 Jun 2023 08:37:07 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Emain.py=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index cdcd60f..78a9331 100644 --- a/main.py +++ b/main.py @@ -15,7 +15,7 @@ from secrets import secrets from configs import configs rp2.country(configs['country']) -version = "0.10-beta" +version = "0.11-beta" Oled = Oled.Oled() TimeUtils = TimeUtils.TimeUtils() @@ -314,7 +314,7 @@ async def APIHandling(reader, writer): response = html % stateis writer.write('HTTP/1.0 200 OK\r\nContent-type: text/html\r\n\r\n') else: - stateis = "Error 400: Invalid usage of API!

Usage: http://servername/api_key/command[/json]

Commands:
API Key: set 'api' in secrets.py file." + stateis = "Error 400: Invalid usage of API!

Usage: http://servername/api_key/command[/json]

Commands:
API Key: set 'api' in secrets.py file." response = html % stateis writer.write('HTTP/1.0 400 Bad Request\r\nContent-type: text/html\r\n\r\n') writer.write(response)