Skip to content

Commit 69a26ec

Browse files
committed
fix: strip leading / to avoid ky error
1 parent 5ed1fe4 commit 69a26ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/http-clients/ky-http-client.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class HttpClient<SecurityDataType = unknown> {
112112
}
113113
}
114114

115-
const request = this.ky(path, {
115+
const request = this.ky(path.replace(/^\//, ''), {
116116
...options,
117117
headers,
118118
searchParams: query,

0 commit comments

Comments
 (0)