Fix API proxy client

This commit is contained in:
Samuel Elliott 2025-07-28 01:21:54 +01:00
parent 8d5981c8f7
commit 3cd774b299
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6

View File

@ -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,