Permalink
Browse files

bug fixing on httpUtils::getHeader static function

  • Loading branch information...
1 parent ba95f10 commit 4670aabea20fa794448d8cc598b5dd05da65a446 @mircobabini committed Feb 9, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 mashape/net/httpUtils.php
View
14 mashape/net/httpUtils.php
@@ -43,14 +43,14 @@ public static function isLocal() {
return $ip == "127.0.0.1" || $ip == "::1";
}
- public static function getHeader($name) {
+ public static function getHeader($name) {
$headers = apache_request_headers();
- foreach ($headers as $key => $value) {
- if ($key == $name) {
- return $value;
- }
- }
- }
+ foreach ($headers as $key => $value) {
+ if ($key == $name) {
+ return $value;
+ }
+ }
+ }
public static function makeHttpRequest($url) {
$response = @file_get_contents($url);

0 comments on commit 4670aab

Please sign in to comment.