less greedy charset matching
This commit is contained in:
parent
220506757b
commit
e63404a368
|
@ -115,7 +115,7 @@ Response.prototype._convert = function(encoding) {
|
|||
|
||||
// header
|
||||
if (this.headers.has('content-type')) {
|
||||
res = /charset=(.*)/i.exec(this.headers.get('content-type'));
|
||||
res = /charset=([^;]*)/i.exec(this.headers.get('content-type'));
|
||||
}
|
||||
|
||||
// no charset in content type, peek at response body
|
||||
|
|
Loading…
Reference in New Issue