Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 47fc11a

Browse filesBrowse files
committed
Allowing body content from GET with a content-type
1 parent b06b7c6 commit 47fc11a
Copy full SHA for 47fc11a

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/BrowserKit/HttpBrowser.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/BrowserKit/HttpBrowser.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.