Hi guys, I have a funny problem that only occurs in FF1.0.x but works fine and dandy in FF1.5. I''d thought its me screwing up with the JS... but even this " What time is it <http://www.onlamp.com/pub/a/onlamp/2005/06/09/rails_ajax.html>" doesn''t work with until I downgrade to Mongrel 0.3.12.4. I don''t like/use FF1.0 too.. but too bad for me <http://www.ubuntu.com/>... Apparently stuff like Rails'' link_to_remote or plain new Ajax.requestdoesn''t work when running with Mongrel 0.3.13.x. Luckily helpful error messages introduced in 0.3.13.4 solved my mystery: BAD CLIENT (127.0.0.1): Sent body size 2 but declared Content-Length: 0>Anyways, to have a (Firefox 1.0+Prototype)-friendly Mongrel, just change line 203 to: if remain == 0 || remain < 0>In case anyone else has problems. Hopefully other parts of the sky don''t fall due to this. -- choonkeat http://blog.yanime.org/ http://www.rssfwd.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060717/680a3fde/attachment.html
On Mon, 2006-07-17 at 13:18 +0800, choonkeat wrote:> Hi guys, > > I have a funny problem that only occurs in FF1.0.x but works fine and > dandy in FF1.5. I''d thought its me screwing up with the JS... but even > this "What time is it" doesn''t work with until I downgrade to Mongrel > 0.3.12.4. I don''t like/use FF1.0 too.. but too bad for me... > > Apparently stuff like Rails'' link_to_remote or plain new Ajax.request > doesn''t work when running with Mongrel 0.3.13.x. Luckily helpful error > messages introduced in 0.3.13.4 solved my mystery: > > BAD CLIENT (127.0.0.1): Sent body size 2 but declared > Content-Length: 0 > > Anyways, to have a (Firefox 1.0+Prototype)-friendly Mongrel, just > change line 203 to: > > if remain == 0 || remain < 0 > > In case anyone else has problems. Hopefully other parts of the sky > don''t fall due to this. >Hey, could you file this in the bug tracker so I can work it? Thanks. I''d do it but I''m busy :-) Zed