Google Chrome Ajax issue with empty post bodies

Google Chrome Ajax issue with empty post bodies

When issuing a POST/PUT/DELETE ajax() request without a `data` parameter, Google Chrome sends "undefined" as the request body, breaking backends which expect well-formed form-urlencoded data (in this case, Ruby on Rails).

We've been bitten by this today. Patch attached to a 7 months old ticket

Just wanted to give a heads-up, since it's a trivial fix. The patch also enables the user to send data in bodies of requests other than POST and PUT (full HTTP methods list: http://annevankesteren.nl/2007/10/http-methods). It's a rare use case, but a use case indeed.
Thanks