Skip to content

Commit

Permalink
res.set(headers) and mashlib@1.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Feb 14, 2025
1 parent 887a94e commit 552b7c4
Show file tree
Hide file tree
Showing 3 changed files with 658 additions and 1,055 deletions.
2 changes: 1 addition & 1 deletion lib/handlers/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async function handler (req, res, next) {
headers
})) return

res.writeHead(res.statusCode, headers) // res.set sneds 'charset'
res.set(headers) // res.set sends 'charset'
return stream.pipe(res)
}

Expand Down
Loading

0 comments on commit 552b7c4

Please sign in to comment.