Skip to content

Commit

Permalink
fix: duplex half once
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 15, 2023
1 parent 19f0acb commit 224aa68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primitives/src/primitives/fetch.js
Expand Up @@ -21,7 +21,7 @@ process.emitWarning = () => {}

class Request extends BaseRequest {
constructor(input, init) {
super(input, addDuplexToInit(init))
super(input, init instanceof BaseRequest ? init : addDuplexToInit(init))
}
}

Expand Down

0 comments on commit 224aa68

Please sign in to comment.