Skip to content

Commit c76db38

Browse files
committed
make sure feed url is working and we are not breaking the document by creating it to early.
1 parent da10975 commit c76db38

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

httpheader.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ public function onAfterInitialise()
7676
// Set the default header when they are enabled
7777
$this->setStaticHeaders();
7878

79-
// CSP is only relevant on html pages. Let's early exit here.
80-
if (Factory::getDocument()->getType() != 'html')
81-
{
82-
return;
83-
}
84-
8579
// Handle CSP Header configuration
8680
$cspOptions = (int) $this->params->get('contentsecuritypolicy', 0);
8781

httpheader.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<author>Tobias Zulauf</author>
66
<copyright>(C) 2017 - 2019 Tobias Zulauf All rights reserved.</copyright>
77
<authorUrl>https://www.jah-tz.de</authorUrl>
8-
<version>1.0.9</version>
8+
<version>1.0.10</version>
99
<license>GNU/GPL Version 2 or later</license>
1010
<description>PLG_SYSTEM_HTTPHEADER_XML_DESCRIPTION</description>
1111
<scriptfile>script.php</scriptfile>

0 commit comments

Comments
 (0)