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.
2 parents 198fbc6 + f57e205 commit 1615260Copy full SHA for 1615260
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