We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
duplex
1 parent 0385342 commit eb83aadCopy full SHA for eb83aad
1 file changed
src/utils/event.ts
@@ -39,6 +39,9 @@ export function mockEvent(
39
options?: RequestInit & { h3?: H3EventContext },
40
): H3Event {
41
let request: Request;
42
+ if (options?.body && !(options as any).duplex) {
43
+ (options as any).duplex = "half";
44
+ }
45
if (typeof _request === "string") {
46
let url = _request;
47
if (url[0] === "/") {
0 commit comments