[Nitro] Q about mongrel && nitro

Alexander Lazic al-nitrogen at none.at
Sat Aug 5 06:18:00 EDT 2006

On Sam 05.08.2006 09:18, Alexander Lazic wrote:
>What i have meant was that after the Set-Cookie-Header a futher header
>is send which is wrong!
>Anybody, nitro || mongrel, sends:
>"Date: Fri, 04 Aug 2006 23:00:29 GMT\r\nStatus: 200 OK\r\nContent-Type: \
> text/html\r\nSet-Cookie: nsid=376b3e39265fc699c62ab4aa3868e3e4; \
>Path=/\r\n\r\nContent-Length: 110\r\n\r\n"
>The '\r\n' is the 'delimiter' for the header as RFC2616 say ;-)
>My Question was now *who* send the Cookie-Header and *who* the

I think i have found the error but not a solution, yet.

I have add this into the

###   def handle(req, res)

        res.header.out << Cgi.response_headers(context)
        res.body << context.out

        puts "in MongrelAdapter at handle() after unless()"
	puts " res.header.out.string " + res.header.out.string

        puts "\n in MongrelAdapter at handle() after unless() res.body "
	+ res.body.string

And have seen that no Content-Length-Header is there, now i assume that
mongrel add this header but to late.

What i also assume that the response-header should be send completely by

It looks to me that the mongreladapter need a little bit redesign, could
i try it ;-)?

Is anybody on this list which have more experience with ruby and mongrel
who can help me ;-))



More information about the Nitro-general mailing list