BookStack/app/Http
Dan Brown e9f906ce56
Attachments: Fixed full range request handling
We were not responsing with a range request, where the requested range
was for the full extent of content. This changes things to always
provide a range request, even for the full range.

Change made since our existing logic could cause problems in chromium
browsers.

Elseif statement removed as its was likley redundant based upon other
existing checks.
This also changes responses for requested ranges beyond content, but I
think that's technically correct looking at the spec (416 are for when
there are no overlapping request/response ranges at all).

Updated tests to cover.
For #5342
2024-11-29 13:19:55 +00:00
..
Middleware Framework: Upgrade from Laravel 9 to 10 2024-03-16 15:12:14 +00:00
ApiController.php Cleaned up namespacing in routes 2023-05-18 20:57:05 +01:00
Controller.php URL Handling: Removed referrer-based redirect handling 2023-12-10 12:37:21 +00:00
DownloadResponseFactory.php Range requests: Added basic HTTP range support 2024-01-07 20:34:03 +00:00
HttpClientHistory.php Removed use of HttpFetcher 2023-09-08 17:16:57 +01:00
HttpRequestService.php Removed use of HttpFetcher 2023-09-08 17:16:57 +01:00
Kernel.php Framework: Upgrade from Laravel 9 to 10 2024-03-16 15:12:14 +00:00
RangeSupportedStream.php Attachments: Fixed full range request handling 2024-11-29 13:19:55 +00:00
Request.php Fixed static analysis issues 2023-02-06 20:00:44 +00:00