File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/code/Magento/UpwardConnector/Controller Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 12
12
use Magento \Framework \App \ResponseInterface ;
13
13
use Magento \Framework \HTTP \PhpEnvironment \Response ;
14
14
use Magento \Upward \Controller as UpwardController ;
15
+ use Zend \Http \Response \Stream ;
15
16
16
17
class Upward implements FrontControllerInterface
17
18
{
@@ -47,9 +48,10 @@ public function dispatch(RequestInterface $request)
47
48
{
48
49
/** @var \Zend\Http\Response $upwardResponse */
49
50
$ upwardResponse = ($ this ->upwardController )();
51
+ $ content = $ upwardResponse instanceof Stream ? $ upwardResponse ->getBody () : $ upwardResponse ->getContent ();
50
52
$ this ->response ->setHeaders ($ upwardResponse ->getHeaders ());
51
53
$ this ->response ->setStatusCode ($ upwardResponse ->getStatusCode ());
52
- $ this ->response ->setContent ($ upwardResponse -> getContent () );
54
+ $ this ->response ->setContent ($ content );
53
55
return $ this ->response ;
54
56
}
55
57
}
You can’t perform that action at this time.
0 commit comments