Browse files

added content type application/json for DELETE requests

  • Loading branch information...
1 parent 1accc8b commit d96467da548bcace4053b3cd8caba081aaf67f1f @DimitarChristoff DimitarChristoff committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/epitome-model-sync.js
View
2 src/epitome-model-sync.js
@@ -97,7 +97,7 @@
options.data = model || this.toJSON();
// for real REST interfaces, produce native JSON post
- if (this.options.useJSON && ['POST','PUT'].contains(method)) {
+ if (this.options.useJSON && ['POST','PUT','DELETE'].contains(method)) {
// serialise model to a JSON string
options.data = JSON.encode(options.data);
// disable urlEncoded to escape mootools Request trap for content type form-urlencoded

0 comments on commit d96467d

Please sign in to comment.