File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -2060,24 +2060,6 @@ def get_zlib_library(self, cmake):
2060
2060
# it this way then allows the page to close() itself when done.
2061
2061
def harness_server_func (in_queue , out_queue , port ):
2062
2062
class TestServerHandler (SimpleHTTPRequestHandler ):
2063
- # Request header handler for default do_GET() path in
2064
- # SimpleHTTPRequestHandler.do_GET(self) below.
2065
- def send_head (self ):
2066
- if self .path .endswith ('.js' ):
2067
- path = self .translate_path (self .path )
2068
- try :
2069
- f = open (path , 'rb' )
2070
- except IOError :
2071
- self .send_error (404 , "File not found: " + path )
2072
- return None
2073
- self .send_response (200 )
2074
- self .send_header ('Content-type' , 'application/javascript' )
2075
- self .send_header ('Connection' , 'close' )
2076
- self .end_headers ()
2077
- return f
2078
- else :
2079
- return SimpleHTTPRequestHandler .send_head (self )
2080
-
2081
2063
# Add COOP, COEP, CORP, and no-caching headers
2082
2064
def end_headers (self ):
2083
2065
self .send_header ('Access-Control-Allow-Origin' , '*' )
You can’t perform that action at this time.
0 commit comments