Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Drupal.org issue queue
Drupal.org issue queue
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
project
drupal
Commits
7dee9da3
Unverified
Commit
7dee9da3
authored
Oct 30, 2019
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3090626
by neclimdul: ContentTypeHeaderMatcher dx tests broken with some nginx configs
(cherry picked from commit
f995409b
)
parent
091fbadd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
core/lib/Drupal/Core/Routing/ContentTypeHeaderMatcher.php
core/lib/Drupal/Core/Routing/ContentTypeHeaderMatcher.php
+1
-1
No files found.
core/lib/Drupal/Core/Routing/ContentTypeHeaderMatcher.php
View file @
7dee9da3
...
...
@@ -42,7 +42,7 @@ public function filter(RouteCollection $collection, Request $request) {
// We do not throw a
// \Symfony\Component\Routing\Exception\ResourceNotFoundException here
// because we don't want to return a 404 status code, but rather a 415.
if
(
!
$request
->
headers
->
has
(
'Content-Type'
))
{
if
(
!
$request
->
headers
->
get
(
'Content-Type'
,
FALSE
))
{
throw
new
UnsupportedMediaTypeHttpException
(
'No "Content-Type" request header specified'
);
}
else
{
...
...
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