diff --git a/src/Routing/QueryRouteEnhancer.php b/src/Routing/QueryRouteEnhancer.php index f3b45f16a..2b0bca8be 100644 --- a/src/Routing/QueryRouteEnhancer.php +++ b/src/Routing/QueryRouteEnhancer.php @@ -71,7 +71,7 @@ protected function extractBody(Request $request) { $values = array_merge($values, JsonHelper::decodeParams($content)); } - if (stripos($request->headers->get('content-type'), 'multipart/form-data') !== FALSE) { + if (stripos($request->headers->get('content-type') ?? '', 'multipart/form-data') !== FALSE) { return $this->extractMultipart($request, $values); }