Ticket #1258 (closed defect: wontfix)

Opened 1 year ago

Last modified 1 year ago

don't send content length header

Reported by: nagash Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: mod_fastcgi Version: 1.4.15
Severity: major Keywords:
Cc: Blocking:
Need Feedback: 0

Description

I am using FastCGI and X-LIGHTTPD-send-file header to make lighty to send files with kernel sendfile. but lighty doesn't send Content-Length header. and it's ruble for us.

for example I can make stat to file and send this header manualy - but it will be double work and it's stupid.

is there any way to make lighty send Content-Length header when I use X-LIGHTTPD-send-file header from FastCGI aplication?

Attachments

Change History

07/03/2007 10:13:05 AM changed by lighttpd@nagash.org

I tried to add Content-Length header - but it didn't help.

07/03/2007 02:18:39 PM changed by lighttpd@nagash.org

sorry - it's my foult - if I set Content-Length header manualy - it works. but it duble work with it. first is My FastCGI makes stat on file and next your Lighty make the same! is it possible to make lighty set proper headers?

07/04/2007 01:29:51 PM changed by darix

the content length is not needed with x-sendfile responses as the file is send in chunked encoding anyway. in 1.5 the request is passed to mod_staticfile so you will get the content-length header for free.

07/04/2007 01:31:47 PM changed by darix

i forgot to mention fixing this in 1.4 would mean some bigger structural changes. and dont think this is feasible.

08/17/2007 10:25:51 PM changed by jan

  • status changed from new to closed.
  • resolution set to wontfix.

Add/Change #1258 (don't send content length header)




Change Properties
Action