mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
fix readablestream bodies
This commit is contained in:
parent
903d5a6720
commit
eca9d42da6
5 changed files with 17 additions and 7 deletions
|
@ -63,10 +63,20 @@ onmessage = async (msg) => {
|
|||
return t1 - t0;
|
||||
};
|
||||
|
||||
const readableStream = (buffer) => {
|
||||
return new ReadableStream({
|
||||
start(controller) {
|
||||
controller.enqueue(buffer);
|
||||
controller.close();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
if (should_feature_test) {
|
||||
let formdata = new FormData();
|
||||
formdata.append("a", "b");
|
||||
for (const url of [
|
||||
["https://httpbin.org/post", { method: "POST", body: readableStream((new TextEncoder()).encode("abc")) }],
|
||||
["https://httpbin.org/get", {}],
|
||||
["https://httpbin.org/gzip", {}],
|
||||
["https://httpbin.org/brotli", {}],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue