File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
lib/internal/Magento/Framework/App/Config Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -93,13 +93,12 @@ public function getScope($scopeType, $scopeCode = null)
93
93
$ scopeCode = $ this ->_getScopeCode ($ scopeType , $ scopeCode );
94
94
95
95
//Key by url to support dynamic {{base_url}} and port assignments
96
- $ host = $ this ->getRequest ()->getServer ( ' HTTP_HOST ' );
96
+ $ host = $ this ->getRequest ()->getHttpHost ( );
97
97
$ port = $ this ->getRequest ()->getServer ('SERVER_PORT ' );
98
98
$ path = $ this ->getRequest ()->getBasePath ();
99
- $ host = ($ host == null ) ? 'localhost ' : $ host ;
100
99
$ urlInfo = $ host . $ port . trim ($ path , '/ ' );
101
100
$ code = $ scopeType . '| ' . $ scopeCode . '| ' . $ urlInfo ;
102
-
101
+
103
102
if (!isset ($ this ->_scopes [$ code ])) {
104
103
$ cacheKey = $ this ->_cacheId . '| ' . $ code ;
105
104
$ data = $ this ->_cache ->load ($ cacheKey );
You can’t perform that action at this time.
0 commit comments