Skip to content

Commit 3e5f597

Browse files
VirtualTimkripken
authored andcommitted
[emrun] Use HTTP/1.1, instead of the default of HTTP/1.0 (emscripten-core#9127)
1 parent b2d4756 commit 3e5f597

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Current Trunk
2727
global scope, preventing temporary variables at page startup from being garbage
2828
collected. (#9108)
2929
- `__builtin_return_address` now requires `-s USE_OFFSET_CONVERTER=1` to work. (#9073)
30+
- emrun now uses HTTP/1.1 instead of HTTP/1.0.
3031

3132
v.1.38.40: 07/24/2019
3233
---------------------

emrun.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ def shutdown(self):
508508
# Processes HTTP request back to the browser.
509509
class HTTPHandler(SimpleHTTPRequestHandler):
510510
def send_head(self):
511+
self.protocol_version = 'HTTP/1.1'
511512
global page_last_served_time
512513
path = self.translate_path(self.path)
513514
f = None
@@ -576,6 +577,7 @@ def log_message(self, format, *args):
576577
sys.stderr.write(msg)
577578

578579
def do_POST(self):
580+
self.protocol_version = 'HTTP/1.1'
579581
global page_exit_code, emrun_options, have_received_messages
580582

581583
(_, _, path, query, _) = urlsplit(self.path)

0 commit comments

Comments
 (0)