@@ -58,6 +58,7 @@ export class ApiEndpoints {
5858 const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
5959
6060 const headers = { ...config ?. headers } ;
61+ headers [ "Accept" ] = "application/json" ;
6162 headers [
6263 "user-agent"
6364 ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -120,6 +121,7 @@ export class ApiEndpoints {
120121 const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
121122
122123 const headers = { ...config ?. headers } ;
124+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
123125 headers [
124126 "user-agent"
125127 ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -188,6 +190,7 @@ export class ApiEndpoints {
188190 const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
189191
190192 const headers = { ...config ?. headers } ;
193+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
191194 headers [
192195 "user-agent"
193196 ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -255,6 +258,7 @@ export class ApiEndpoints {
255258 const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
256259
257260 const headers = { ...config ?. headers } ;
261+ headers [ "Accept" ] = "application/json;q=1, application/octet-stream;q=0" ;
258262 headers [
259263 "user-agent"
260264 ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -320,6 +324,7 @@ export class ApiEndpoints {
320324 const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
321325
322326 const headers = { ...config ?. headers } ;
327+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
323328 headers [
324329 "user-agent"
325330 ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -387,6 +392,7 @@ export class ApiEndpoints {
387392 const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
388393
389394 const headers = { ...config ?. headers } ;
395+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
390396 headers [
391397 "user-agent"
392398 ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -454,6 +460,7 @@ export class ApiEndpoints {
454460 const client : AxiosInstance = this . _securityClient || this . _defaultClient ;
455461
456462 const headers = { ...config ?. headers } ;
463+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
457464 headers [
458465 "user-agent"
459466 ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
@@ -537,6 +544,7 @@ export class ApiEndpoints {
537544 const headers = { ...reqBodyHeaders , ...config ?. headers } ;
538545 if ( reqBody == null || Object . keys ( reqBody ) . length === 0 )
539546 throw new Error ( "request body is required" ) ;
547+ headers [ "Accept" ] = "application/json;q=1, application/json;q=0" ;
540548 headers [
541549 "user-agent"
542550 ] = `speakeasy-sdk/${ this . _language } ${ this . _sdkVersion } ${ this . _genVersion } ` ;
0 commit comments