On Fri Jan 12, 2007 at 04:14:06PM -0500, Jack Baty wrote: > 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.
odd. you can't totally trust curl though. are yo using curl on the same machine in both examples? it often returns the wrong Content-Type (eg completely at odds with what firefox and ngrep show) ive noticed my Camping Problem!s are padded with (65535 - errorlength) nothingness, which makes the error really hard to find in ngrep.. > > 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 > > > > _______________________________________________ > Mongrel-users mailing list > Mongrel-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/mongrel-users > _______________________________________________ Mongrel-users mailing list Mongrel-users@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-users