mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-24 01:15:08 +01:00
🐛 Removes object deconstructing for custom headers
This commit is contained in:
parent
2925525fe4
commit
746a3774b6
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue