bug fixing on httpUtils::getHeader #5

Merged
merged 2 commits into from Feb 9, 2012
@@ -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;
}
}
}