Move accept header to client instead of proxy

Signed-off-by: Julio Zynger <julio.zynger@soundcloud.com>
This commit is contained in:
Julio Zynger
2022-01-03 15:15:24 +01:00
parent 108a0cf2fb
commit 0781c324d5
3 changed files with 7 additions and 4 deletions
+5
View File
@@ -26,6 +26,11 @@ export class GoCdClientApi implements GoCdApi {
const baseUrl = await this.discoveryApi.getBaseUrl('proxy');
const pipelineHistoryResponse = await fetch(
`${baseUrl}/gocd/pipelines/${pipelineName}/history`,
{
headers: {
Accept: 'application/vnd.go.cd+json',
},
},
);
return await pipelineHistoryResponse.json();