We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44591fe commit 95fb5ccCopy full SHA for 95fb5cc
History.md
@@ -29,6 +29,7 @@ unreleased
29
* deps: vary@~1.1.2
30
- perf: improve header token parsing speed
31
* perf: re-use options object when generating ETags
32
+ * perf: remove dead `.charset` set in `res.jsonp`
33
34
4.15.5 / 2017-09-24
35
===================
lib/response.js
@@ -314,7 +314,6 @@ res.jsonp = function jsonp(obj) {
314
315
// jsonp
316
if (typeof callback === 'string' && callback.length !== 0) {
317
- this.charset = 'utf-8';
318
this.set('X-Content-Type-Options', 'nosniff');
319
this.set('Content-Type', 'text/javascript');
320
0 commit comments