1
0

maak het een GET request anders werkt het niet

This commit is contained in:
2025-06-29 02:19:01 +02:00
parent 928b3f8a71
commit 31da346652

View File

@@ -29,7 +29,7 @@ def check_data():
GPIO.output(FAN_PIN, GPIO.LOW) GPIO.output(FAN_PIN, GPIO.LOW)
class handler_class(http.server.BaseHTTPRequestHandler): class handler_class(http.server.BaseHTTPRequestHandler):
def do_WEB (self): def do_GET (self):
if self.path == '/': if self.path == '/':
self.send_response(200) self.send_response(200)
self.send_header('Content-type', 'text/html; charset=utf-8') self.send_header('Content-type', 'text/html; charset=utf-8')