Skip to content

Commit

Permalink
Change Accept header for file download
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoAdamek committed Oct 18, 2024
1 parent dbe2402 commit 026fe4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tigerbay",
"version": "1.1.3-beta.2",
"version": "1.1.3-beta.3",
"description": "API Client library for TigerBay",
"main": "lib/client.js",
"type": "commonjs",
Expand Down
6 changes: 5 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ export class Client {

public async file(id: number): Promise<AxiosResponse> {
const { Url } = (await this.axios.get(`/cms/files/${id}`)).data
return this.axios.get('/..' + Url)
return this.axios.get('/..' + Url, {
headers:{
Accept: '*/*',
},
})
}

public async healthcheck(): Promise<HealthCheckResponse> {
Expand Down

0 comments on commit 026fe4a

Please sign in to comment.