Merge pull request #9 from ironsidevsquincy/master

Less greedy charset matching
This commit is contained in:
David Frank 2015-03-24 12:16:10 +08:00
commit b417f0d2ba
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