Skip to content

Commit

Permalink
fix: strip leading / to avoid ky error
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Mar 5, 2024
1 parent 5ed1fe4 commit 69a26ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/base/http-clients/ky-http-client.ejs
Expand Up @@ -112,7 +112,7 @@ export class HttpClient<SecurityDataType = unknown> {
}
}

const request = this.ky(path, {
const request = this.ky(path.replace(/^\//, ''), {
...options,
headers,
searchParams: query,
Expand Down

0 comments on commit 69a26ec

Please sign in to comment.