Commit: 45a0450ef3ddd86adbb56f2d8705f08aad737b17

Author: Mattijs Hoitink | Date: 2010-12-07 22:20:25 +0100
Updated the Response content-type/charset detection regex
diff --git a/libraries/lithium/net/http/Response.php b/libraries/lithium/net/http/Response.php index 8898dd9..4d40b4a 100644 --- a/libraries/lithium/net/http/Response.php +++ b/libraries/lithium/net/http/Response.php @@ -106,7 +106,7 @@ class Response extends \lithium\net\http\Message { } if (isset($this->headers['Content-Type'])) { - preg_match('/^(.*?);charset=(.+)/i', $this->headers['Content-Type'], $match); + preg_match('/^(.*?);\s*?charset=(.+)/i', $this->headers['Content-Type'], $match); if ($match) { $this->type = trim($match[1]);