3.0.3 version bug? Accept-ranges header

Phoca Download - download manager
iblanco
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 05 Dec 2013, 19:20

3.0.3 version bug? Accept-ranges header

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: 3.0.3 version bug? Accept-ranges header

Post 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
If you find Phoca extensions useful, please support the project
Post Reply