Skip to content

Commit

Permalink
strict type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 13, 2019
1 parent efc3c0a commit 45e2638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function __destruct()
&& isset($_SERVER['HTTP_USER_AGENT'])
&& strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE ') !== false
&& in_array($this->code, [400, 403, 404, 405, 406, 408, 409, 410, 500, 501, 505], true)
&& preg_match('#^text/html(?:;|$)#', $this->getHeader('Content-Type'))
&& preg_match('#^text/html(?:;|$)#', (string) $this->getHeader('Content-Type'))
) {
echo Nette\Utils\Random::generate(2000, " \t\r\n"); // sends invisible garbage for IE
self::$fixIE = false;
Expand Down

0 comments on commit 45e2638

Please sign in to comment.