mirror of https://github.com/Lissy93/dashy.git
🐛 Removes object deconstructing for custom headers
This commit is contained in:
parent
2925525fe4
commit
746a3774b6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue