Navigation Menu

Skip to content

Commit

Permalink
HttpExtension: 'proxy' can be string
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jul 14, 2019
1 parent fb054cc commit bd6e00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bridges/HttpDI/HttpExtension.php
Expand Up @@ -32,7 +32,7 @@ public function __construct(bool $cliMode = false)
public function getConfigSchema(): Nette\Schema\Schema
{
return Expect::structure([
'proxy' => Expect::arrayOf('string')->dynamic(),
'proxy' => Expect::anyOf(Expect::arrayOf('string'), Expect::string()->castTo('array'))->default([])->dynamic(),
'headers' => Expect::arrayOf('scalar|null')->default([
'X-Powered-By' => 'Nette Framework 3',
'Content-Type' => 'text/html; charset=utf-8',
Expand Down

0 comments on commit bd6e00c

Please sign in to comment.