Skip to content

Commit

Permalink
removeHeader instead of set
Browse files Browse the repository at this point in the history
  • Loading branch information
seekayel committed Sep 15, 2021
1 parent 6d405ee commit b332920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const handle = app.getRequestHandler()

// Create a local server to receive data from
const server = http.createServer((req, res) => {
res.set('transfer-encoding', '')
res.removeHeader('Transfer-Encoding');
handle(req,res)
});

Expand Down

0 comments on commit b332920

Please sign in to comment.