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 3f9fa5a commit 53ff1c2Copy full SHA for 53ff1c2
index.js
@@ -94,19 +94,6 @@ module.exports = function proxy(host, options) {
94
}
95
96
var encode = 'utf8';
97
- if (rsp.headers && rsp.headers['content-type']) {
98
- var contentType = rsp.headers['content-type'];
99
- if (/charset=/.test(contentType)) {
100
- var attrs = contentType.split(';').map(function(str) { return str.trim(); });
101
- for (var i = 0, len = attrs.length; i < len; i++) {
102
- var attr = attrs[i];
103
- if (/charset=/.test(attr)) {
104
- // encode = attr.split('=')[1];
105
- break;
106
- }
107
108
109
110
111
if (typeof rspd === 'string') {
112
rspd = new Buffer(rspd, encode);
0 commit comments