Skip to content

Commit bfa91c9

Browse files
committed
MAGETWO-52923: Switching to Varnish causes category menu to force HTTPS links
- Add localhost default to keep integration tests functioning
1 parent a683c74 commit bfa91c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/internal/Magento/Framework/App/Config/ScopePool.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ public function getScope($scopeType, $scopeCode = null)
9696
$host = $this->getRequest()->getServer('HTTP_HOST');
9797
$port = $this->getRequest()->getServer('SERVER_PORT');
9898
$path = $this->getRequest()->getBasePath();
99+
$host = ($host == null) ? 'localhost' : $host;
99100
$urlInfo = $host . $port . trim($path, '/');
100101
$code = $scopeType . '|' . $scopeCode . '|' . $urlInfo;
102+
101103
if (!isset($this->_scopes[$code])) {
102104
$cacheKey = $this->_cacheId . '|' . $code;
103105
$data = $this->_cache->load($cacheKey);

0 commit comments

Comments
 (0)