0

I'm getting this error when open a jQuery Mobile web with put/post ajax(remote) link inside an android device and trying to click on these link. The problem happens with Rails 3.1 running on WebRick and Passenger. Problem seem to vanish if I use thin. Though, I prefer Passenger for production server.

Any thing I should tweak in Passenger to shoot this error away?

Phương Nguyễn
  • 8,747
  • 15
  • 62
  • 96
  • Try install `gem 'mongrel', '>= 1.2.0.pre2'`. WebBrick in my app always throw this message and mongrel fix this. – Eraden May 21 '12 at 08:15

1 Answers1

0

It turns out to be some problem with the combination of jQuery Mobile + Android Webkit that causes a POST request with empty body to raise this error. I make a hack to rails ujs to use a hash of timestamp ( { timestamp: (new Date()).getTime() } ) as body of any non-GET request with empty body and the problem goes away.

Phương Nguyễn
  • 8,747
  • 15
  • 62
  • 96