minor #35075 X-Accel Nginx URL updated (shahariaazam)

This PR was submitted for the master branch but it was merged into the 3.4 branch instead.

Discussion
----------

X-Accel Nginx URL updated

Obsolete URL has been updated

Commits
-------

4557221597 X-Accel Nginx URL updated
This commit is contained in:
Nicolas Grekas 2019-12-26 09:05:47 +01:00
commit d6a3138a40

View File

@ -217,7 +217,7 @@ class BinaryFileResponse extends Response
}
if ('x-accel-redirect' === strtolower($type)) {
// Do X-Accel-Mapping substitutions.
// @link http://wiki.nginx.org/X-accel#X-Accel-Redirect
// @link https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/#x-accel-redirect
foreach (explode(',', $request->headers->get('X-Accel-Mapping', '')) as $mapping) {
$mapping = explode('=', $mapping, 2);