File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/Bridge/Symfony/Routing Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ public function match($pathInfo)
75
75
$ context = (new RequestContext ())->fromRequest ($ request );
76
76
$ context ->setPathInfo ($ pathInfo );
77
77
$ context ->setScheme ($ baseContext ->getScheme ());
78
+ $ context ->setHost ($ baseContext ->getHost ());
78
79
79
80
try {
80
81
$ this ->router ->setContext ($ context );
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ public function testNoResourceClass()
32
32
$ eventProphecy ->getRequest ()->willReturn ($ request )->shouldBeCalled ();
33
33
$ event = $ eventProphecy ->reveal ();
34
34
35
- $ listener = new AddFormatListener (new Negotiator (), ['jsonld ' => 'application/ld+json ' ]);
35
+ $ listener = new AddFormatListener (new Negotiator (), ['notexist ' => 'application/vnd.notexist ' ]);
36
36
$ listener ->onKernelRequest ($ event );
37
37
38
- $ this ->assertNull ($ request ->getFormat ('application/ld+json ' ));
38
+ $ this ->assertNull ($ request ->getFormat ('application/vnd.notexist ' ));
39
39
}
40
40
41
41
public function testSupportedRequestFormat ()
You can’t perform that action at this time.
0 commit comments