Skip to content

Commit 8cf39bc

Browse files
committed
fixup
1 parent 154802d commit 8cf39bc

File tree

2 files changed

+2
-2
lines changed
  • packages/open-next/src/overrides

2 files changed

+2
-2
lines changed

packages/open-next/src/overrides/converters/edge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const converter: Converter<InternalEvent, InternalResult | MiddlewareResult> = {
5757
convertTo: async (result) => {
5858
if ("internalEvent" in result) {
5959
const request = new Request(result.internalEvent.url, {
60-
body: result.internalEvent.body,
60+
body: result.internalEvent.body?.buffer as BodyInit | undefined,
6161
method: result.internalEvent.method,
6262
headers: {
6363
...result.internalEvent.headers,

packages/open-next/src/overrides/proxyExternalRequest/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const fetchProxy: ProxyExternalRequest = {
1616
const response = await fetch(url, {
1717
method,
1818
headers,
19-
body,
19+
body: body as BodyInit | undefined,
2020
});
2121
const responseHeaders: Record<string, string | string[]> = {};
2222
response.headers.forEach((value, key) => {

0 commit comments

Comments
 (0)