[Mongrel] Content-Length: 0

Jack Baty jbaty at fusionary.com
Fri Jan 12 16:14:06 EST 2007


While trying to debug a goofy XML loading issue in IE, I've found  
that Mongrel (latest) returns Content-Type: 0 with every request on a  
particular (CentOS 4) server, yet not on my local (OS X) box. These  
both access identical Rails apps. This seems like a clue, but thought  
I'd ask here if for some reason this is expected behavior. Both  
running Ruby 1.8.4. Both return identical HTML when asked.

Thanks.


Local machine...

$ curl -I http://macbookpro:3000/
HTTP/1.1 200 OK
Connection: close
Date: Fri, 12 Jan 2007 21:00:46 GMT
Set-Cookie: _session_id=2b9dd56af3a66538082088ad31ee085a; path=/
Status: 200 OK
Cache-Control: no-cache
Server: Mongrel 1.0
Content-Type: text/html; charset=utf-8
Content-Length: 4160


Server...

$ curl -I 127.0.0.1:8260
HTTP/1.1 200 OK
Connection: close
Date: Fri, 12 Jan 2007 20:52:08 GMT
Set-Cookie: _session_id=5afad9b6ad80750c5c47f0eb08af318c; path=/
Status: 200 OK
Cache-Control: no-cache
Server: Mongrel 1.0
Content-Type: text/html; charset=utf-8
Content-Length: 0




-- 
------------------------------------------------------------------------ 
--------
Jack Baty                  http://jackbaty.com/    (616) 822-5800
Fusionary                  http://fusionary.com/   (616) 454-2357
820 Monroe N.W. Suite 212
Grand Rapids, MI 49503





More information about the Mongrel-users mailing list