Skip to content

Commit

Permalink
perf: remove dead .charset set in res.jsonp
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Sep 28, 2017
1 parent 44591fe commit 95fb5cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions History.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ unreleased
* deps: vary@~1.1.2
- perf: improve header token parsing speed
* perf: re-use options object when generating ETags
* perf: remove dead `.charset` set in `res.jsonp`

4.15.5 / 2017-09-24
===================
Expand Down
1 change: 0 additions & 1 deletion lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ res.jsonp = function jsonp(obj) {

// jsonp
if (typeof callback === 'string' && callback.length !== 0) {
this.charset = 'utf-8';
this.set('X-Content-Type-Options', 'nosniff');
this.set('Content-Type', 'text/javascript');

Expand Down

0 comments on commit 95fb5cc

Please sign in to comment.