mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-21 20:54:54 +02:00
🐛 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…
x
Reference in New Issue
Block a user