Skip to content

Commit

Permalink
Merge pull request #460 from AntonShevchuk/develop
Browse files Browse the repository at this point in the history
Hotfix for Request Proxy
  • Loading branch information
Anton committed Oct 3, 2018
2 parents 929e4f5 + 83e028d commit acab5ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Proxy/Request.php
Expand Up @@ -151,7 +151,7 @@ public static function getHeader($header, $default = null)
$headers = self::getInstance()->getHeaders();
$headers = array_change_key_case($headers, CASE_LOWER);
if (array_key_exists($header, $headers)) {
$value = is_array($headers[$header]) ? implode(', ', $headers[$header]) : $headers[$header];
$value = \is_array($headers[$header]) ? implode(', ', $headers[$header]) : $headers[$header];
return $value;
}
return $default;
Expand Down Expand Up @@ -196,7 +196,7 @@ public static function getParams()
*/
public static function getFile($name)
{
return RequestFactory::get($name, self::getInstance()->getUploadedFiles());
return self::getInstance()->getUploadedFiles()[$name] ?? false;
}

/**
Expand Down

0 comments on commit acab5ff

Please sign in to comment.