🐛 Removes object deconstructing for custom headers

This commit is contained in:
Alicia Sykes 2022-01-01 01:14:56 +00:00
parent 2925525fe4
commit 746a3774b6
1 changed files with 1 additions and 1 deletions

View File

@ -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