Skip to content
Myr

perf: remove dead .charset set in res.jsonp

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 44591fe · Browse files · 2 files+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+1 added−1 removed

  • other:+1 added−1 removed

2 files+1 added−1 removed

modified:lib/response.js-1 removed
312 unmodified lines
313 }314315 // jsonp316 if (typeof callback === 'string' && callback.length !== 0) {317 this.charset = 'utf-8';317 this.set('X-Content-Type-Options', 'nosniff');318 this.set('Content-Type', 'text/javascript');319320 // restrict callback charset
765 unmodified lines
modified:History.md+1 added
27 unmodified lines
28 * deps: utils-merge@1.0.129 * deps: vary@~1.1.230 - perf: improve header token parsing speed31 * perf: re-use options object when generating ETags32 * perf: remove dead `.charset` set in `res.jsonp`33344.15.5 / 2017-09-2435===================36
3308 unmodified lines