Project

General

Profile

Actions

Bug #1258

closed

don't send content length header

Added by Anonymous almost 17 years ago. Updated 4 months ago.

Status:
Fixed
Priority:
Normal
Category:
mod_fastcgi
Target version:
-
ASK QUESTIONS IN Forums:
No

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?

-- nagash

Actions #1

Updated by Anonymous almost 17 years ago

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

-- lighttpd

Actions #2

Updated by Anonymous almost 17 years ago

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?

-- lighttpd

Actions #3

Updated by darix almost 17 years ago

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.

Actions #4

Updated by darix almost 17 years ago

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

Actions #5

Updated by jan over 16 years ago

  • Status changed from New to Fixed
  • Resolution set to wontfix
Actions #6

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Wontfix
Actions #7

Updated by gstrauss about 8 years ago

  • Description updated (diff)

FYI: another option: mod_fastcgi supports an extension called X-Sendfile2 which does set Content-Length

Actions #8

Updated by gstrauss 4 months ago

  • Status changed from Wontfix to Fixed
  • Target version deleted (1.5.0)
  • ASK QUESTIONS IN Forums set to No

Fixed in lighttpd 1.4.40. See #2017

Actions

Also available in: Atom