Skip to content

Commit

Permalink
✨ added 'force' as optional value for enabled. closes #16
Browse files Browse the repository at this point in the history
🔥 removed some markdown files of dependencies

Signed-off-by: Bruno Meilick <b@bnomei.com>
  • Loading branch information
bnomei committed May 11, 2020
1 parent 7fb1ec8 commit c2b1b1e
Show file tree
Hide file tree
Showing 8 changed files with 290 additions and 566 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/vendor/**/.*
/vendor/**/*.json
/vendor/**/*.txt
/vendor/**/*.md``
/vendor/**/*.md
/vendor/**/*.yml
/vendor/**/*.yaml
/vendor/**/*.xml
Expand Down
6 changes: 5 additions & 1 deletion classes/SecurityHeaders.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ public function applySetter()
*/
public function sendHeaders(): bool
{
if ($this->option('debug') || $this->option('enabled') !== true) {
if ($this->option('enabled') === false) {
return false;
}

if ($this->option('debug') && $this->option('enabled') !== 'force') {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-security-headers",
"type": "kirby-plugin",
"version": "2.3.0",
"version": "2.3.1",
"license": "MIT",
"description": "Kirby 3 Plugin for easier Security Headers setup",
"authors": [
Expand Down
Loading

0 comments on commit c2b1b1e

Please sign in to comment.