Skip to content

Commit

Permalink
🐛 Removes object deconstructing for custom headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Jan 1, 2022
1 parent 2925525 commit 746a377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixins/WidgetMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const WidgetMixin = {
// Request Options
const method = 'GET';
const url = this.useProxy ? this.proxyReqEndpoint : endpoint;
const CustomHeaders = options ? { ...JSON.stringify(options) } : null;
const CustomHeaders = options ? JSON.stringify(options) : null;
const headers = this.useProxy
? { 'Target-URL': endpoint, CustomHeaders } : CustomHeaders;
// Make request
Expand Down

0 comments on commit 746a377

Please sign in to comment.