Skip to content

Commit d14adac

Browse files
committed
Allowing body content from GET with a content-type
1 parent abfe83a commit d14adac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/BrowserKit/HttpBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function doRequest($request): Response
6161
*/
6262
private function getBodyAndExtraHeaders(Request $request, array $headers): array
6363
{
64-
if (($request->getMethod() == 'GET' && !isset($headers['content-type'])) || $request->getMethod() == 'HEAD') {
64+
if (('GET' == $request->getMethod() && !isset($headers['content-type'])) || 'HEAD' == $request->getMethod()) {
6565
return ['', []];
6666
}
6767

0 commit comments

Comments
 (0)