mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 10:02:42 +00:00
Merge branch 'master' into 2.5
This commit is contained in:
commit
60b0893c79
15 changed files with 324 additions and 113 deletions
|
@ -518,6 +518,9 @@ class RequestHandlerComponent extends Component {
|
|||
}
|
||||
|
||||
list($contentType) = explode(';', env('CONTENT_TYPE'));
|
||||
if ($contentType === '') {
|
||||
list($contentType) = explode(';', CakeRequest::header('CONTENT_TYPE'));
|
||||
}
|
||||
if (!$type) {
|
||||
return $this->mapType($contentType);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue