@@ -58,6 +58,7 @@ export class ApiEndpoints {
58
58
const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
59
59
60
60
const headers = { ...config ?. headers } ;
61
+ headers [ "Accept" ] = "application/json" ;
61
62
headers [
62
63
"user-agent"
63
64
] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -120,6 +121,7 @@ export class ApiEndpoints {
120
121
const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
121
122
122
123
const headers = { ...config ?. headers } ;
124
+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
123
125
headers [
124
126
"user-agent"
125
127
] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -188,6 +190,7 @@ export class ApiEndpoints {
188
190
const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
189
191
190
192
const headers = { ...config ?. headers } ;
193
+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
191
194
headers [
192
195
"user-agent"
193
196
] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -255,6 +258,7 @@ export class ApiEndpoints {
255
258
const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
256
259
257
260
const headers = { ...config ?. headers } ;
261
+ headers [ "Accept" ] = "application/json;q=1, application/octet-stream;q=0" ;
258
262
headers [
259
263
"user-agent"
260
264
] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -320,6 +324,7 @@ export class ApiEndpoints {
320
324
const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
321
325
322
326
const headers = { ...config ?. headers } ;
327
+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
323
328
headers [
324
329
"user-agent"
325
330
] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -387,6 +392,7 @@ export class ApiEndpoints {
387
392
const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
388
393
389
394
const headers = { ...config ?. headers } ;
395
+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
390
396
headers [
391
397
"user-agent"
392
398
] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -454,6 +460,7 @@ export class ApiEndpoints {
454
460
const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
455
461
456
462
const headers = { ...config ?. headers } ;
463
+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
457
464
headers [
458
465
"user-agent"
459
466
] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -537,6 +544,7 @@ export class ApiEndpoints {
537
544
const headers = { ...reqBodyHeaders , ...config ?. headers } ;
538
545
if ( reqBody == null || Object . keys ( reqBody ) . length === 0 )
539
546
throw new Error ( "request body is required" ) ;
547
+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
540
548
headers [
541
549
"user-agent"
542
550
] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
0 commit comments