jquery/jquery — pull request #994 by bmelton (2012-10-17 02:37:04+00:00)
Title: Fix HTTP:411 error on non-chunking web servers occuring during POST or PUT operations. 

Problem description (old) is here: https://groups.google.com/forum/?fromgroups=#!topic/jquery-en/IoKJgc8jvcQ

Issue is that Nginx (without Chunkin support enabled, as found on Dotcloud) rejects PUT and POST delete requests as they don't have any message body.

Many work around this in code by settings a data: {} attribute in params.

My fix simply swaps {} for null as they are effectively the same and this will support more servers.

I've checked against a few different servers, Apache & Nginx with and without chunking enabled, and this hasn't caused any problems that I've seen.