fix(core): update
This commit is contained in:
parent
018fcbf71e
commit
d271029302
@ -290,7 +290,12 @@ const proxyWorkerCalls = {
|
|||||||
updateReverseConfigs: async (configArray: plugins.tsclass.network.IReverseProxyConfig[]) => {
|
updateReverseConfigs: async (configArray: plugins.tsclass.network.IReverseProxyConfig[]) => {
|
||||||
await proxyWorkerInstance.updateProxyConfigs(configArray);
|
await proxyWorkerInstance.updateProxyConfigs(configArray);
|
||||||
},
|
},
|
||||||
addDefaultHeaders: async (headers: {[key: string]: string}) => {}
|
addDefaultHeaders: async (headersArg: {[key: string]: string}) => {
|
||||||
|
proxyWorkerInstance.defaultHeaders = {
|
||||||
|
...proxyWorkerInstance.defaultHeaders,
|
||||||
|
...headersArg
|
||||||
|
};
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TProxyWorkerCalls = typeof proxyWorkerCalls;
|
export type TProxyWorkerCalls = typeof proxyWorkerCalls;
|
||||||
|
Loading…
Reference in New Issue
Block a user