diff --git a/lib/solr.ts b/lib/solr.ts index ff355a3..8e2e1f6 100644 --- a/lib/solr.ts +++ b/lib/solr.ts @@ -172,7 +172,6 @@ export class Client { acceptContentType: string ): Promise { const protocol = this.options.secure ? 'https' : 'http'; - const url = `${protocol}://${this.options.host}:${this.options.port}${path}`; const requestOptions: UndiciRequestOptions = { ...this.options.request, method, @@ -198,7 +197,7 @@ export class Client { // Perform the request and handle results. const response = await this.undiciClient.request({ - path: url, + path, ...requestOptions, }); diff --git a/package.json b/package.json index ccd9233..1586902 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "proxy-agent": "^5.0.0", "request": "^2.88.2", "tslib": "^2.3.1", - "undici": "^4.7.1" + "undici": "^6.19.0" }, "devDependencies": { "@types/chai": "^4.2.22",