Skip to content

Commit

Permalink
Merge pull request #111 from Hypfer/fix_http_serverresponse_implicith…
Browse files Browse the repository at this point in the history
…eader

Implemented ServerResponse._implicitHeader
  • Loading branch information
ThomasRogg authored May 17, 2020
2 parents adda22e + f366a68 commit 702b8eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib_js/internal/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ class ServerResponse extends stream.Writable {
native.httpWriteHead(this.connection._socketFD, headersAsTxt, len, chunked);
}

_implicitHeader() {
return this.writeHead(this.statusCode);
}

setHeader(name, value) {
if (this.headersSent)
return;
Expand Down

0 comments on commit 702b8eb

Please sign in to comment.