Skip to content

Commit

Permalink
Remove IE9 code
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ committed Dec 12, 2022
1 parent ed4be02 commit 0317c97
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions libraries/src/Document/JsonDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,7 @@ public function __construct($options = array())
parent::__construct($options);

// Set mime type
if (
isset($_SERVER['HTTP_ACCEPT'])
&& strpos($_SERVER['HTTP_ACCEPT'], 'application/json') === false
&& strpos($_SERVER['HTTP_ACCEPT'], 'text/html') !== false
) {
// Internet Explorer < 10
$this->_mime = 'text/plain';
} else {
$this->_mime = 'application/json';
}
$this->_mime = 'application/json';

// Set document type
$this->_type = 'json';
Expand Down

0 comments on commit 0317c97

Please sign in to comment.