Skip to content

Commit

Permalink
[BUGFIX canary] Fix options assignment in json-api adapter
Browse files Browse the repository at this point in the history
This should fix many of the partner addon issues.
  • Loading branch information
mwpastore authored and runspired committed Mar 24, 2019
1 parent 739f78e commit a61651d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addon/adapters/json-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ const JSONAPIAdapter = RESTAdapter.extend({
@return {Object}
*/
ajaxOptions(url, type, options) {
options = options || {};
options.contentType = 'application/vnd.api+json';
let hash = this._super(url, type, options);
hash.headers['Accept'] = 'application/vnd.api+json';
Expand Down

0 comments on commit a61651d

Please sign in to comment.