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 10
10
use Magento \Framework \File \Mime ;
11
11
use Magento \Framework \App \Request \Http as HttpRequest ;
12
12
use Magento \Framework \App \ObjectManager ;
13
+ use Zend \Http \Headers ;
13
14
14
15
/**
15
16
* File adapter to send the file to the client.
@@ -114,7 +115,7 @@ private function getFilePath($options): string
114
115
private function prepareResponse ($ options , string $ filepath ): void
115
116
{
116
117
$ 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) {
118
119
$ this ->response ->setHeaders ($ options ['headers ' ]);
119
120
}
120
121
$ this ->response ->setHeader ('Content-length ' , filesize ($ filepath ));
You can’t perform that action at this time.
0 commit comments