We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f61f1b9 commit 8e8a53cCopy full SHA for 8e8a53c
otohttp/templates/client.ts.plush
@@ -27,7 +27,9 @@ export class Client {
27
const headers: HeadersInit = new Headers();
28
headers.set('Accept', 'application/json');
29
headers.set('Content-Type', 'application/json');
30
- await this.client.headers(headers);
+ if (this.client.headers) {
31
+ await this.client.headers(headers);
32
+ }
33
const response = await fetch(this.client.basepath + '<%= service.Name %>.<%= method.Name %>', {
34
method: 'POST',
35
headers: headers,
0 commit comments