From fa45c555882ed65a866de9f1291d530533ae8e8b Mon Sep 17 00:00:00 2001 From: Allison Karlitskaya Date: Wed, 21 Jan 2026 19:50:59 +0100 Subject: [PATCH] webrepl: Send Content-Type text/html for index. If we don't do this then Firefox incorrectly guesses text/plain and just shows the source. Adding the Content-Type: fixes the issue. Signed-off-by: Allison Karlitskaya --- micropython/net/webrepl/webrepl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/micropython/net/webrepl/webrepl.py b/micropython/net/webrepl/webrepl.py index 00da8155c..cfc5c79ca 100644 --- a/micropython/net/webrepl/webrepl.py +++ b/micropython/net/webrepl/webrepl.py @@ -78,6 +78,7 @@ def send_html(cl): cl.send( b"""\ HTTP/1.0 200 OK\r +Content-Type: text/html\r \r