Skip to content

Commit 95fb5cc

Browse files
committed
perf: remove dead .charset set in res.jsonp
1 parent 44591fe commit 95fb5cc

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

History.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ unreleased
2929
* deps: vary@~1.1.2
3030
- perf: improve header token parsing speed
3131
* perf: re-use options object when generating ETags
32+
* perf: remove dead `.charset` set in `res.jsonp`
3233

3334
4.15.5 / 2017-09-24
3435
===================

lib/response.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ res.jsonp = function jsonp(obj) {
314314

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

0 commit comments

Comments
 (0)