Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
d4e0bb74
Commit
d4e0bb74
authored
Mar 10, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2681 from dizews/buildin-phpserver-fix
fix bug of php buildin webserver
https://bugs.php.net/bug.php?id=66606
parents
81ce1497
2dcf4281
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
Request.php
framework/web/Request.php
+6
-1
No files found.
framework/CHANGELOG.md
View file @
d4e0bb74
...
...
@@ -53,6 +53,7 @@ Yii Framework 2 Change Log
-
Bug #2607:
`yii message`
tool wasn't updating
`message`
table (mitalcoi)
-
Bug #2624: Html::textArea() should respect "name" option. (qiangxue)
-
Bug #2653: Fixed the bug that unsetting an unpopulated AR relation would trigger exception (qiangxue)
-
Bug #2681: Fixed the bug of php build-in server https://bugs.php.net/bug.php?id=66606 (dizews)
-
Bug: Fixed
`Call to a member function registerAssetFiles() on a non-object`
in case of wrong
`sourcePath`
for an asset bundle (samdark)
-
Bug: Fixed incorrect event name for
`yii\jui\Spinner`
(samdark)
-
Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
...
...
framework/web/Request.php
View file @
d4e0bb74
...
...
@@ -956,7 +956,12 @@ class Request extends \yii\base\Request
*/
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"
]))
{
//fix bug https://bugs.php.net/bug.php?id=66606
return
$_SERVER
[
"HTTP_CONTENT_TYPE"
];
}
return
null
;
}
private
$_languages
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment