Skip to content

Commit 53ff1c2

Browse files
authored
Remove large loop that was doing nothing. (villadora#103)
1 parent 3f9fa5a commit 53ff1c2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

index.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,6 @@ module.exports = function proxy(host, options) {
9494
}
9595

9696
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-
}
11097

11198
if (typeof rspd === 'string') {
11299
rspd = new Buffer(rspd, encode);

0 commit comments

Comments
 (0)