[Rails] Re: Duplicate headers
Gleb Arshinov
gleb at barsook.com
Sat Nov 13 00:24:44 GMT 2004
>>>>> "Tim" == Tim Bates <tim at bates.id.au> writes:
Tim> @headers["Content-Type"] = "image/png"
Tim> This works just beautifully under ordinary CGI. However, FCGI
Tim> complains about having two "Content-Type" headers. There is
Tim> only one in the output if run under CGI, so Apache must strip
Tim> out the duplicate, but under FCGI it crashes and returns 500
Tim> Infernal Server Error instead. Why is the (presumably)
Tim> text/html header not getting replaced?
Wild guess -- does using "Content-type" (note capitalization) make any
difference?
Gleb
More information about the Rails
mailing list