Skip to content

Commit

Permalink
Fix return type of buffer()
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Dec 6, 2021
1 parent 198fbc6 commit f57e205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export interface RequestBodyOptions {
encoding?: string
}

const requestBodyMap = new WeakMap()
const requestBodyMap = new WeakMap<ServerRequest, Buffer>()

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

0 comments on commit f57e205

Please sign in to comment.