Permalink
Browse files

Reverted a part of f5e7f2481916d32d5e51b4f01a2deced78b81549

  • Loading branch information...
1 parent 5f5b95c commit c31f02fecbc5f9836398afedcd254097f3a52869 @pborreli pborreli committed May 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ServerBag.php
View
@@ -30,7 +30,7 @@ public function getHeaders()
$headers = array();
$contentHeaders = array('CONTENT_LENGTH' => true, 'CONTENT_MD5' => true, 'CONTENT_TYPE' => true);
foreach ($this->parameters as $key => $value) {
- if ('HTTP_' === substr($key, 0, 5)) {
+ if (0 === strpos($key, 'HTTP_')) {
$headers[substr($key, 5)] = $value;
}
// CONTENT_* are not prefixed with HTTP_

0 comments on commit c31f02f

Please sign in to comment.