File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
lib/internal/Magento/Framework/File/Transfer/Adapter Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1010use Magento \Framework \File \Mime ;
1111use Magento \Framework \App \Request \Http as HttpRequest ;
1212use Magento \Framework \App \ObjectManager ;
13+ use Zend \Http \Headers ;
1314
1415/**
1516 * File adapter to send the file to the client.
@@ -114,7 +115,7 @@ private function getFilePath($options): string
114115 private function prepareResponse ($ options , string $ filepath ): void
115116 {
116117 $ mimeType = $ this ->mime ->getMimeType ($ filepath );
117- if (is_array ($ options ) && isset ($ options ['headers ' ]) && $ options ['headers ' ] instanceof \ Zend \ Http \ Headers) {
118+ if (is_array ($ options ) && isset ($ options ['headers ' ]) && $ options ['headers ' ] instanceof Headers) {
118119 $ this ->response ->setHeaders ($ options ['headers ' ]);
119120 }
120121 $ this ->response ->setHeader ('Content-length ' , filesize ($ filepath ));
You can’t perform that action at this time.
0 commit comments