Skip to content

Commit

Permalink
fix(next): bind new stream functions with base incomingMessage object
Browse files Browse the repository at this point in the history
Closes: vercel#37805
  • Loading branch information
AliYusuf95 committed Jun 18, 2022
1 parent af9d922 commit 3f00a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/server/body-streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function replaceRequestBody<T extends IncomingMessage>(
for (const key in stream) {
let v = stream[key as keyof Readable] as any
if (typeof v === 'function') {
v = v.bind(stream)
v = v.bind(base)
}
base[key as keyof T] = v
}
Expand Down

0 comments on commit 3f00a48

Please sign in to comment.