Hello,
I have a problem with configuring X-LiteSpeed-Location header.
The header works well, but if I add other headers, they will be ignored.
Following code I use in my PHP-script:
header('X-LiteSpeed-Location: /download/'.$data["download_zip_file"]);
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.$data["download_file_name"].'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length:'.filesize('download/'.$data["download_zip_file"]));
What I get back is this:
Accept-Ranges = bytes
Connection = Keep-Alive
Content-Length = 1617311820
Content-Type = application/zip
Date = Thu, 27 Apr 2017 06:38:15 GMT
Etag = "6066384c-5900cfe4-800b03"
Last-Modified = Wed, 26 Apr 2017 16:50:44 GMT
Server = LiteSpeed
Only the Content-Length-header was sent to the client. All other defined Headers were dropped.
The most important header for me is the Content-Disposition-header, but I think it would be nice, if all custom headers will be sent to the client.
Have you any idea, how I can get it working?
Thanks,
Sebastian
PS: There is a post with the same topic in the litespeed-forum. There they speak from a bug which is fixed in the current stable (5.1.15)