Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: strip leading / to avoid ky error
Browse files Browse the repository at this point in the history
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
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@ export class HttpClient<SecurityDataType = unknown> {
}
}

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

0 comments on commit 69a26ec

Please sign in to comment.