less greedy charset matching

This commit is contained in:
Darren Hurley 2015-03-23 17:00:23 +00:00
parent 220506757b
commit e63404a368
1 changed files with 1 additions and 1 deletions

View File

@ -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