server
server copied to clipboard
[WebDAV] Add "Accept-Ranges: bytes" header
Nextcloud seems to support range requests (partial downloads), but it doesn't seend an Accept-Ranges: bytes header.
It could add such a header to HEAD (and maybe other) responses for WebDAV files to advertise this support.
In case of DAVx5, DAVx5 can open a resource in random-access mode instead of the less flexible streaming mode when DAVx5 knows that the server supports ranged requests.
https://github.com/nextcloud/server/blob/c9611c0f5d08cc0a41fb7018cb5691dd71b2cea0/lib/private/legacy/OC_Files.php#L86