diff --git a/src/app/api/notary/OfficeFolderAnchorsController.ts b/src/app/api/notary/OfficeFolderAnchorsController.ts index 0a93eb4a..29f9e0ea 100644 --- a/src/app/api/notary/OfficeFolderAnchorsController.ts +++ b/src/app/api/notary/OfficeFolderAnchorsController.ts @@ -56,6 +56,7 @@ export default class OfficeFoldersController extends ApiController { const sortedHashes = [...folderHashes].sort(); const buffer = await this.secureService.download(sortedHashes); + response.setHeader('Content-Type', 'application/pdf'); this.httpSuccess(response, buffer); } catch (error) { this.httpInternalError(response, error); diff --git a/src/common/config/variables/Variables.ts b/src/common/config/variables/Variables.ts index 5a0d22dd..c052d91c 100644 --- a/src/common/config/variables/Variables.ts +++ b/src/common/config/variables/Variables.ts @@ -100,9 +100,6 @@ export class BackendVariables { @IsNotEmpty() public readonly DOCAPOST_CONNECT_PROCESS_ID!: string; - @IsNotEmpty() - public readonly BACK_API_HOST!: string; - @IsNotEmpty() public readonly DOCAPOST_APP_ID!: string; @@ -143,7 +140,6 @@ export class BackendVariables { this.DOCAPOST_VERSION = process.env["DOCAPOST_VERSION"]!; this.DOCAPOST_DOCUMENT_PROCESS_ID = process.env["DOCAPOST_DOCUMENT_PROCESS_ID"]!; this.DOCAPOST_CONNECT_PROCESS_ID = process.env["DOCAPOST_CONNECT_PROCESS_ID"]!; - this.BACK_API_HOST = process.env["BACK_API_HOST"]!; this.DOCAPOST_APP_ID = process.env["DOCAPOST_APP_ID"]!; this.DOCAPOST_APP_PASSWORD = process.env["DOCAPOST_APP_PASSWORD"]!;