Skip to content

Commit a661322

Browse files
committed
Merge branch '2.1'
2 parents d2a6729 + dbd8ff3 commit a661322

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Bridge/Symfony/Routing/Router.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public function match($pathInfo)
7575
$context = (new RequestContext())->fromRequest($request);
7676
$context->setPathInfo($pathInfo);
7777
$context->setScheme($baseContext->getScheme());
78+
$context->setHost($baseContext->getHost());
7879

7980
try {
8081
$this->router->setContext($context);

tests/EventListener/AddFormatListenerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ public function testNoResourceClass()
3232
$eventProphecy->getRequest()->willReturn($request)->shouldBeCalled();
3333
$event = $eventProphecy->reveal();
3434

35-
$listener = new AddFormatListener(new Negotiator(), ['jsonld' => 'application/ld+json']);
35+
$listener = new AddFormatListener(new Negotiator(), ['notexist' => 'application/vnd.notexist']);
3636
$listener->onKernelRequest($event);
3737

38-
$this->assertNull($request->getFormat('application/ld+json'));
38+
$this->assertNull($request->getFormat('application/vnd.notexist'));
3939
}
4040

4141
public function testSupportedRequestFormat()

0 commit comments

Comments
 (0)