We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 198fbc6 commit f57e205Copy full SHA for f57e205
src/zap.ts
@@ -85,7 +85,7 @@ export interface RequestBodyOptions {
85
encoding?: string
86
}
87
88
-const requestBodyMap = new WeakMap()
+const requestBodyMap = new WeakMap<ServerRequest, Buffer>()
89
90
export async function buffer(req: ServerRequest, {limit = '1mb', encoding}: RequestBodyOptions = {}) {
91
const type = req.headers['content-type'] ?? 'text/plain'
0 commit comments