mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-09-08 19:35:10 -05:00
Fix API proxy client
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user