Skip to content

Commit c6ca43a

Browse files
Merge branch '6.4' into 7.3
* 6.4: [Messenger] Fix commands writing to STDERR instead of STDOUT [HttpFoundation] Fix parsing hosts and schemes in URLs
2 parents f04f696 + 0118400 commit c6ca43a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/EventListener/RouterListenerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ public function testRequestWithBadHost()
203203
{
204204
$this->expectException(BadRequestHttpException::class);
205205
$kernel = $this->createMock(HttpKernelInterface::class);
206-
$request = Request::create('http://bad host %22/');
206+
$request = Request::create('/');
207+
$request->headers->set('host', 'bad host %22');
207208
$event = new RequestEvent($kernel, $request, HttpKernelInterface::MAIN_REQUEST);
208209

209210
$requestMatcher = $this->createMock(RequestMatcherInterface::class);

0 commit comments

Comments
 (0)