Page 1 of 1

3.0.3 version bug? Accept-ranges header

Posted: 21 Jan 2014, 16:52
by iblanco
In download.php file an "Accept ranges" header is sent with "bytes" value. This suggests that we are partial content download capable. I think that this header might be part of the commented code block that there is few lines below it.

Declaring this capability and not giving it might cause problems. For example I have tweaked the preview funtcionality in order to call to the dowload URL instead of a direct link, when I open a PDF preview Firefox's embedded PDF viewer tries to get the content with partial requests and it fails.

Just commenting that line solves the problem.

Re: 3.0.3 version bug? Accept-ranges header

Posted: 23 Jan 2014, 18:40
by Jan
Hi, thank you for the info, this line was added because other users suggested it for partial downloads (e.g. when download client downloads the file). I will take a look at it but for now I think, we cannot find the best solution so if possible this line or other lines should be customized directly for each server settings :idea:

Jan