Skip to content

Commit 40bd13f

Browse files
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 <allison.karlitskaya@redhat.com>
1 parent 6ae440a commit 40bd13f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

micropython/net/webrepl/webrepl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def send_html(cl):
7878
cl.send(
7979
b"""\
8080
HTTP/1.0 200 OK\r
81+
Content-Type: text/html\r
8182
\r
8283
<base href=\""""
8384
)

0 commit comments

Comments
 (0)