Skip to content

Commit

Permalink
fix(stream): Allows body larger than 16 KiB with middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
aprendendofelipe committed Oct 8, 2022
1 parent be7b10d commit 5ad7e57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/server/body-streams.ts
Expand Up @@ -66,6 +66,7 @@ export function getClonableBody<T extends IncomingMessage>(
}
replaceRequestBody(readable, buffered)
buffered = readable
buffered.push(null)
}
},
/**
Expand Down

0 comments on commit 5ad7e57

Please sign in to comment.