[dancer-users] X-Sendfile

Zahir Lalani ZahirLalani at oliver.agency
Mon Jun 22 17:32:06 BST 2015


Sorry my bad - silly typo!

From: Zahir Lalani
Sent: 22 June 2015 17:10
To: Perl Dancer users mailing list
Subject: X-Sendfile

Hi All

I have my image gallery working using send_file. But I am now trying to use X_Sendfile in apache to deal with image delivery. The code for send_file is replaced with:

               # use x-send
               header('Content-Type' => $mime);
               header("X-Sendfile: $file");

but I get the following error:
Illegal field name 'X-Sendfile: /mnt/assets/1/56/8f/568f1a76-9e17-4027-8556-ed19155708c3/800.jpg' at (eval 384) line 17.

The x-send module is enabled - not sure if this is a dancer issue or an apache one?

Thx


Zahir Lalani
Head of Development & Architecture

[cid:96F784CA-E917-4CC1-A9A9-96CBDA2AF2BC]

2 Tabernacle Street,
London, EC2A 4LU

m: +44 (0)7956 455168
e: zahirlalani at oliver-marketing.com<mailto:zahirlalani at oliver-marketing.com>
w: www.oliver-marketing.com<http://www.oliver-marketing.com/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150622/a330ab21/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2166 bytes
Desc: image001.png
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150622/a330ab21/attachment.png>


More information about the dancer-users mailing list