Skip to content

Commit

Permalink
processData should be true if emulateHttp is true
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Nov 6, 2010
1 parent 9a74dbc commit 501b9ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backbone.js
Expand Up @@ -721,6 +721,7 @@
// For older servers, emulate JSON/HTTP by encoding the request into
// HTML-form-style, and mimicking the HTTP method with `_method`
if (Backbone.emulateHttp) {
params.processData = true;
params.contentType = "application/x-www-form-urlencoded";
params.data = sendModel ? {model : modelJSON} : {};
if (type === 'PUT' || type === 'DELETE') {
Expand Down

0 comments on commit 501b9ab

Please sign in to comment.