Permalink
Browse files

Merge pull request #5 from mirkolofio/master

bug fixing on httpUtils::getHeader
  • Loading branch information...
2 parents d9b787a + 4670aab commit b258a82844ac431167ea88ad50eaadb072f43340 @shatsar shatsar committed Feb 9, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 mashape/net/httpUtils.php
@@ -45,9 +45,9 @@ public static function isLocal() {
public static function getHeader($name) {
$headers = apache_request_headers();
- foreach (array_keys($headers) as $header) {
- if ($header == $name) {
- return $headers[$header];
+ foreach ($headers as $key => $value) {
+ if ($key == $name) {
+ return $value;
}
}
}

0 comments on commit b258a82

Please sign in to comment.