{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/ae1b55c8973a8e8dddb8c7b40a81bc04?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ae1b55c8973a8e8dddb8c7b40a81bc04","url":"https://api.github.com/users/greim","login":"greim","id":317786},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-10-29T18:17:49Z","closed_at":"2011-10-29T18:15:38Z","comments":3,"url":"https://api.github.com/repos/documentcloud/backbone/issues/592","body":"I'd like to request a contentType property on models and collections, which sync() would use in place of \"application/json\" in PUTs and POSTs, if it's set. In its adherence to REST-fulness, the JSON service I'm building against requires specific values like \"application/blah.blah-v1+json\".\r\n\r\nThanks, and great library BTW.\r\n\r\nGreg","html_url":"https://github.com/documentcloud/backbone/issues/592","number":592,"title":"Make content-type customizable for PUT and POST","id":1534592,"created_at":"2011-08-31T18:39:56Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/32652ed5b8fbd2ecdb1c78e9ac567b4b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"32652ed5b8fbd2ecdb1c78e9ac567b4b","url":"https://api.github.com/users/jashkenas","login":"jashkenas","id":4732},"updated_at":"2011-10-29T18:17:49Z","url":"https://api.github.com/repos/documentcloud/backbone/issues/comments/2566092","body":"Here's a patch that should allow you to override any of the Backbone.sync options. Kick the tires, and let me know if it's not working for you: 8478567ecb64d8bc26cc2d10f456420f5e6368df","id":2566092,"created_at":"2011-10-29T18:17:49Z"}}