Closed aaronmccall closed 9 years ago
Right now, when sync is called like so: model.sync('patch', model, { headers: { "if-unmodified-since": "Tue, 18 Nov 2014 21:32:47 GMT"}}) any headers defined in ajaxConfig will not be included in the request.
model.sync('patch', model, { headers: { "if-unmodified-since": "Tue, 18 Nov 2014 21:32:47 GMT"}})
I modified my extension to pick up ajaxConfig headers and merge them with its own default options.headers. @HenrikJoreteg, you convinced me. :smile:
options.headers
Right now, when sync is called like so:
model.sync('patch', model, { headers: { "if-unmodified-since": "Tue, 18 Nov 2014 21:32:47 GMT"}})
any headers defined in ajaxConfig will not be included in the request.