Skip to content

Commit 8f0bc65

Browse files
committed
Fixed issue with json file export and varnish
1 parent 7a25d3f commit 8f0bc65

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Controller/Adminhtml/Container/Generate.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function execute()
128128
'value' => json_encode($container, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT),
129129
'rm' => true
130130
];
131-
$this->fileFactory->create(
131+
return $this->fileFactory->create(
132132
sprintf('GTM' . '_%s.json', $this->dateTime->date('Y-m-d_H-i-s')),
133133
$fileContent,
134134
DirectoryList::MEDIA,
@@ -139,8 +139,5 @@ public function execute()
139139
$this->messageManager->addErrorMessage(__('Something went wrong while generating the file.'));
140140
return $resultRedirect->setPath($this->redirect->getRefererUrl());
141141
}
142-
143-
$resultRaw = $this->resultRawFactory->create();
144-
return $resultRaw;
145142
}
146143
}

0 commit comments

Comments
 (0)