Skip to content

Commit

Permalink
[BUGFIX] Fix headers precedence warning for null headers object
Browse files Browse the repository at this point in the history
  • Loading branch information
igorT committed Mar 9, 2020
1 parent 82cd914 commit 51b0572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapter/addon/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ const RESTAdapter = Adapter.extend(BuildURLMixin, {
);

let headers = get(this, 'headers');
if (headers !== undefined) {
if (headers) {
if (DEBUG) {
options.headers = options.headers || {};
let conflictingHeaders = Object.keys(headers).filter(key => options.headers[key] !== undefined);
Expand Down

0 comments on commit 51b0572

Please sign in to comment.