mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
remove unnecessary tests, add helper script to pacify firefox
This commit is contained in:
parent
28869ef6ee
commit
1a897ec03a
2 changed files with 10 additions and 7 deletions
|
@ -41,12 +41,6 @@ onmessage = async (msg) => {
|
|||
["https://httpbin.org/brotli", {}],
|
||||
["https://httpbin.org/redirect/11", {}],
|
||||
["https://httpbin.org/redirect/1", { redirect: "manual" }],
|
||||
["https://nghttp2.org/httpbin/get", {}],
|
||||
["https://nghttp2.org/httpbin/gzip", {}],
|
||||
["https://nghttp2.org/httpbin/brotli", {}],
|
||||
["https://nghttp2.org/httpbin/redirect/11", {}],
|
||||
["https://nghttp2.org/httpbin/redirect/1", { redirect: "manual" }]
|
||||
|
||||
]) {
|
||||
let resp = await epoxy_client.fetch(url[0], url[1]);
|
||||
console.warn(url, resp, Object.fromEntries(resp.headers));
|
||||
|
@ -122,7 +116,6 @@ onmessage = async (msg) => {
|
|||
}
|
||||
total_mux_minus_native = total_mux_minus_native / num_tests;
|
||||
log(`total mux - native (${num_tests} tests of ${num_tests} reqs): ${total_mux_minus_native} ms or ${total_mux_minus_native / 1000} s`);
|
||||
|
||||
} else if (should_perf_test) {
|
||||
const num_tests = 10;
|
||||
|
||||
|
|
10
client/serve.py
Normal file
10
client/serve.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from http.server import HTTPServer, SimpleHTTPRequestHandler, test
|
||||
import sys
|
||||
|
||||
class RequestHandler (SimpleHTTPRequestHandler):
|
||||
def end_headers (self):
|
||||
self.send_header('Cross-Origin-Opener-Policy', 'same-origin')
|
||||
self.send_header('Cross-Origin-Embedder-Policy', 'require-corp')
|
||||
SimpleHTTPRequestHandler.end_headers(self)
|
||||
|
||||
test(RequestHandler, HTTPServer, port=int(sys.argv[1]) if len(sys.argv) > 1 else 8000)
|
Loading…
Add table
Add a link
Reference in a new issue