Skip to content

Commit

Permalink
HttpExtension: compatibility with nette/schema 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 17, 2020
1 parent c36d5c6 commit 2a9ac3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"phpstan/phpstan": "^0.12"
},
"conflict": {
"nette/di": "<3.0.3"
"nette/di": "<3.0.3",
"nette/schema": "<1.1"
},
"suggest": {
"ext-fileinfo": "to detect type of uploaded files",
Expand Down
2 changes: 1 addition & 1 deletion src/Bridges/HttpDI/HttpExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getConfigSchema(): Nette\Schema\Schema
'headers' => Expect::arrayOf('scalar|null')->default([
'X-Powered-By' => 'Nette Framework 3',
'Content-Type' => 'text/html; charset=utf-8',
]),
])->mergeDefaults(),
'frames' => Expect::anyOf(Expect::string(), Expect::bool(), null)->default('SAMEORIGIN'), // X-Frame-Options
'csp' => Expect::arrayOf('array|scalar|null'), // Content-Security-Policy
'cspReportOnly' => Expect::arrayOf('array|scalar|null'), // Content-Security-Policy-Report-Only
Expand Down

0 comments on commit 2a9ac3f

Please sign in to comment.