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)