Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

bug fixing on httpUtils::getHeader #5

Merged
merged 2 commits into from

2 participants

@mircobabini

something wrong working on assoc array $headers,
issue fixed using native foreach $key => $value syntax

@shatsar shatsar merged commit b258a82 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 mashape/net/httpUtils.php
View
6 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;
}
}
}
Something went wrong with that request. Please try again.