We are running a Laravel 5.7 app on our production server, which is running some version of Apache 2 (the SERVER_SOFTWARE
env variable only shows "Apache") with PHP 7.2 FCGI.
The env variable HTTP_RANGE
seems to be set automatically (apparently always to bytes=0-5242879
) by Apache which leads to file downloads failing with an HTTP 416 error.
According to the developer console, the initial request does not contain a Range header. For development, we are using Laravel's built-in development server (via php artisan serve
), which works without issues too, so I am pretty confident that Apache 2 is adding that header on its own.
How do I debug where HTTP_RANGE
is being set? As a workaround, how do I disable this behavior in .htaccess
?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire