Skip to content

Navigation Menu

Sign in
Appearance settings

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 e44f249

Browse filesBrowse files
bug symfony#81 Don't normalize query string in PsrHttpFactory (nicolas-grekas)
This PR was merged into the 2.0-dev branch. Discussion ---------- Don't normalize query string in PsrHttpFactory Fix symfony#80 Commits ------- bc25829 Don't normalize query string in PsrHttpFactory
2 parents df735ec + bc25829 commit e44f249
Copy full SHA for e44f249

File tree

Expand file treeCollapse file tree

2 files changed

+10
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+10
-1
lines changed

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGELOG
22
=========
33

4+
# 2.0.1 (2020-06-25)
5+
6+
* Don't normalize query string in PsrHttpFactory
7+
* Fix conversion for HTTPS requests
8+
* Fix populating default port and headers in HttpFoundationFactory
9+
410
# 2.0.0 (2020-01-02)
511

612
* Remove DiactorosFactory

‎Factory/PsrHttpFactory.php

Copy file name to clipboardExpand all lines: Factory/PsrHttpFactory.php
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,12 @@ public function __construct(ServerRequestFactoryInterface $serverRequestFactory,
4848
*/
4949
public function createRequest(Request $symfonyRequest)
5050
{
51+
$uri = $symfonyRequest->server->get('QUERY_STRING', '');
52+
$uri = $symfonyRequest->getSchemeAndHttpHost().$symfonyRequest->getBaseUrl().$symfonyRequest->getPathInfo().('' !== $uri ? '?'.$uri : '');
53+
5154
$request = $this->serverRequestFactory->createServerRequest(
5255
$symfonyRequest->getMethod(),
53-
$symfonyRequest->getUri(),
56+
$uri,
5457
$symfonyRequest->server->all()
5558
);
5659

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.