fixed blob download fix

This commit is contained in:
Timo 2020-12-15 15:49:07 +02:00
parent 6872d87c64
commit 8f3625b577

View File

@ -442,7 +442,8 @@ export class FileManagementControllerService {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.request<any>('post', `${this.basePath}/download/report`, {
return this.httpClient.request('post', `${this.basePath}/download/report`, {
responseType: 'blob',
body: body,
params: queryParameters,
withCredentials: this.configuration.withCredentials,
@ -519,7 +520,8 @@ export class FileManagementControllerService {
// to determine the Content-Type header
const consumes: string[] = [];
return this.httpClient.request<any>('get', `${this.basePath}/download/report/${encodeURIComponent(String(projectId))}`, {
return this.httpClient.request('get', `${this.basePath}/download/report/${encodeURIComponent(String(projectId))}`, {
responseType: 'blob',
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,