Skip to content

Commit

Permalink
Merge pull request #5 from jacobwgillespie/typings
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Dec 6, 2021
2 parents 198fbc6 + f57e205 commit 1615260
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 1615260

Please sign in to comment.