set anchoring proof download response content type

This commit is contained in:
Loïs Mansot 2023-09-26 15:37:32 +02:00
parent cbbd11e5e4
commit 532543fe5e
No known key found for this signature in database
GPG Key ID: 8CF1F4150DDA726D

View File

@ -56,6 +56,7 @@ export default class OfficeFoldersController extends ApiController {
const sortedHashes = [...folderHashes].sort(); const sortedHashes = [...folderHashes].sort();
const buffer = await this.secureService.download(sortedHashes); const buffer = await this.secureService.download(sortedHashes);
response.setHeader('Content-Type', 'application/pdf');
this.httpSuccess(response, buffer); this.httpSuccess(response, buffer);
} catch (error) { } catch (error) {
this.httpInternalError(response, error); this.httpInternalError(response, error);