Commit d84814c
authored
Fix: define duplex option on non-null body on infra open-api client fetch (e2b-dev#81)
Since we replace the infra openapi clients fetch function with next.js
native fetch, and the open-api client always passes bodies as
`ReadableStream`, we have to set `duplex: "half"` on the overridden
fetch client when body is defined.
Fixes e2b-dev#801 parent 876a3d8 commit d84814c
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments