Skip to content

Commit 7daeaf8

Browse files
committed
Merge pull request #1113 from ktounet/fix-checking-content-type
Use empty function instead of equal to null for DELETE request (nginx compatibility)
2 parents db5da50 + e455a61 commit 7daeaf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/BodyListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function onKernelRequest(GetResponseEvent $event)
144144
*/
145145
private function isNotAnEmptyDeleteRequestWithNoSetContentType($method, $content, $contentType)
146146
{
147-
return false === ('DELETE' === $method && empty($content) && null === $contentType);
147+
return false === ('DELETE' === $method && empty($content) && empty($contentType));
148148
}
149149

150150
/**

0 commit comments

Comments
 (0)