Commit 46d2413c by Vladimir Zbrailov
parent f7a5c29e
...@@ -956,7 +956,12 @@ class Request extends \yii\base\Request ...@@ -956,7 +956,12 @@ class Request extends \yii\base\Request
*/ */
public function getContentType() public function getContentType()
{ {
return isset($_SERVER["CONTENT_TYPE"]) ? $_SERVER["CONTENT_TYPE"] : null; if (isset($_SERVER["CONTENT_TYPE"])) {
return $_SERVER["CONTENT_TYPE"];
} elseif (isset($_SERVER["HTTP_CONTENT_TYPE"])) {
return $_SERVER["HTTP_CONTENT_TYPE"];
}
return null;
} }
private $_languages; private $_languages;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment