diff --git a/test/common.py b/test/common.py index bf1cdc92dadad..9425d4b80b9e9 100644 --- a/test/common.py +++ b/test/common.py @@ -2060,24 +2060,6 @@ def get_zlib_library(self, cmake): # it this way then allows the page to close() itself when done. def harness_server_func(in_queue, out_queue, port): class TestServerHandler(SimpleHTTPRequestHandler): - # Request header handler for default do_GET() path in - # SimpleHTTPRequestHandler.do_GET(self) below. - def send_head(self): - if self.path.endswith('.js'): - path = self.translate_path(self.path) - try: - f = open(path, 'rb') - except IOError: - self.send_error(404, "File not found: " + path) - return None - self.send_response(200) - self.send_header('Content-type', 'application/javascript') - self.send_header('Connection', 'close') - self.end_headers() - return f - else: - return SimpleHTTPRequestHandler.send_head(self) - # Add COOP, COEP, CORP, and no-caching headers def end_headers(self): self.send_header('Access-Control-Allow-Origin', '*')