Skip to content

Commit 1615260

Browse files
Merge pull request #5 from jacobwgillespie/typings
2 parents 198fbc6 + f57e205 commit 1615260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/zap.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export interface RequestBodyOptions {
8585
encoding?: string
8686
}
8787

88-
const requestBodyMap = new WeakMap()
88+
const requestBodyMap = new WeakMap<ServerRequest, Buffer>()
8989

9090
export async function buffer(req: ServerRequest, {limit = '1mb', encoding}: RequestBodyOptions = {}) {
9191
const type = req.headers['content-type'] ?? 'text/plain'

0 commit comments

Comments
 (0)