Merge pull request #1173 from sugenganthos/patch-2

Update Response.php
This commit is contained in:
Lonnie Ezell 2018-09-06 21:59:06 -05:00 committed by GitHub
commit 9bb7a52287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -639,6 +639,9 @@ class Response extends Message implements ResponseInterface
if ($this->CSPEnabled === true)
{
$this->CSP->finalize($this);
}else{
$this->body = str_replace(['{csp-style-nonce}','{csp-script-nonce}'], '', $this->body);
}
$this->sendHeaders();