We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ceddad commit 66c617dCopy full SHA for 66c617d
templates/base/http-clients/ky-http-client.ejs
@@ -85,7 +85,7 @@ export class HttpClient<SecurityDataType = unknown> {
85
query,
86
format,
87
body,
88
- ...requestParams
+ ...options
89
<% if (config.unwrapResponseData) { %>
90
}: FullRequestParams): Promise<T> => {
91
<% } else { %>
@@ -100,9 +100,9 @@ export class HttpClient<SecurityDataType = unknown> {
100
}
101
102
const request = this.ky(path, {
103
- ...requestParams,
+ ...options,
104
headers: {
105
- ...(requestParams.headers || {}),
+ ...(options.headers || {}),
106
...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}),
107
},
108
searchParams: query,
0 commit comments