From 532543fe5e39dda6404bf3b31d35daa4f8ff547a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFs=20Mansot?= <26844641+devfull@users.noreply.github.com> Date: Tue, 26 Sep 2023 15:37:32 +0200 Subject: [PATCH 1/2] set anchoring proof download response content type --- src/app/api/notary/OfficeFolderAnchorsController.ts | 1 + 1 file changed, 1 insertion(+) 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); From 9572207133c00facff87314a7fbfd141f7f452bd Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Tue, 26 Sep 2023 15:46:07 +0200 Subject: [PATCH 2/2] delete unused variable --- src/common/config/variables/Variables.ts | 4 ---- 1 file changed, 4 deletions(-) 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"]!;