Skip to content

Commit

Permalink
issue correct accept headers
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer authored and anna-parker committed Oct 25, 2024
1 parent 7bba3c8 commit 03ce686
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion website/src/services/zodiosWrapperClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ export class ZodiosWrapperClient<Api extends ZodiosEndpointDefinitions> {
private readonly logger: InstanceLogger,
private readonly serviceName: string,
) {
this.zodios = new Zodios(url, api);
this.zodios = new Zodios(url, api, {
axiosConfig: {
headers: {
Accept: '*/*', // Some endpoints want plain text, not the default (JSON)
},
},
});
}

/**
Expand Down

0 comments on commit 03ce686

Please sign in to comment.