We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd129b7 commit 1da3d61Copy full SHA for 1da3d61
src/Symfony/Component/HttpFoundation/BinaryFileResponse.php
@@ -192,6 +192,10 @@ public function prepare(Request $request)
192
// Use X-Sendfile, do not send any content.
193
$type = $request->headers->get('X-Sendfile-Type');
194
$path = $this->file->getRealPath();
195
+ // Fall back to scheme://path for stream wrapped locations.
196
+ if (false === $path) {
197
+ $path = $this->file->getPathname();
198
+ }
199
if (strtolower($type) == 'x-accel-redirect') {
200
// Do X-Accel-Mapping substitutions.
201
// @link http://wiki.nginx.org/X-accel#X-Accel-Redirect
0 commit comments