Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyguerra committed Dec 28, 2023
1 parent 02fc63c commit 6f83015
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ class Response {
set headers (value) {
this.res.headers = value;
}
// Express session requires this because of the way it adds a listener by wrapping the response object
writeHead () {
return this.res.writeHead(...arguments);
}
_implicitHeader() {
this.res._implicitHeader();
this.res._implicitHeader.apply(this);
}
pipe () {
return this.res.pipe(...arguments);
Expand Down

0 comments on commit 6f83015

Please sign in to comment.