Skip to content

Commit

Permalink
Merge pull request #1173 from sugenganthos/patch-2
Browse files Browse the repository at this point in the history
Update Response.php
  • Loading branch information
lonnieezell authored Sep 7, 2018
2 parents 76e5559 + dfd832d commit 9bb7a52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/HTTP/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ public function send()
if ($this->CSPEnabled === true)
{
$this->CSP->finalize($this);
}else{

$this->body = str_replace(['{csp-style-nonce}','{csp-script-nonce}'], '', $this->body);
}

$this->sendHeaders();
Expand Down

0 comments on commit 9bb7a52

Please sign in to comment.