diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-11-12 16:21:01 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-11-12 16:21:01 +0100 |
commit | 7a7ad782b2f125622509a77c5a6f94ad4ae0f93c (patch) | |
tree | 8b849b80e51492877c60a7b976d33a0ddba68d46 /system/core/Output.php | |
parent | a9ab46d7a031bda304eb9b6658ffaf693b8d9bcb (diff) |
Some micro-optimizations
Diffstat (limited to 'system/core/Output.php')
-rw-r--r-- | system/core/Output.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Output.php b/system/core/Output.php index 9300df356..6312ccd86 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -256,9 +256,9 @@ class CI_Output { { for ($i = 0, $c = count($this->headers); $i < $c; $i++) { - if (preg_match('/^Content-Type:\s(.+)$/', $this->headers[$i][0], $matches)) + if (sscanf($this->headers[$i][0], 'Content-Type: %s', $content_type) === 1) { - return $matches[1]; + return $content_type; } } |