Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98ab85a

Browse files
author
csunolgomez
committed
Fix REQUEST_METHOD on symfony request
1 parent 29be4f8 commit 98ab85a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Factory/HttpFoundationFactory.php

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public function createRequest(ServerRequestInterface $psrRequest)
4343
$server['QUERY_STRING'] = $uri->getQuery();
4444
}
4545

46+
$server['REQUEST_METHOD'] = $psrRequest->getMethod();
47+
4648
$server = array_replace($server, $psrRequest->getServerParams());
4749

4850
$parsedBody = $psrRequest->getParsedBody();

0 commit comments

Comments
 (0)