mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -05:00
Fix API proxy client
This commit is contained in:
parent
8d5981c8f7
commit
3cd774b299
|
|
@ -28,7 +28,7 @@ export default class ZncProxyApi extends AbstractCoralApi implements CoralApiInt
|
|||
if (typeof this.url === 'string' && !base_url.pathname.endsWith('/')) base_url.pathname += '/';
|
||||
|
||||
const [signal, cancel] = timeoutSignal();
|
||||
const response = await fetch(new URL(url, this.url), {
|
||||
const response = await fetch(new URL(url, base_url), {
|
||||
method,
|
||||
headers: Object.assign({
|
||||
'Authorization': 'na ' + this.token,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user