Skip to content

Commit 3d84741

Browse files
committed
feat: add content type for encrypted results string
1 parent 2a7ba57 commit 3d84741

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

packages/apps/reputation-oracle/server/src/modules/storage/storage.service.spec.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,10 @@ describe('StorageService', () => {
402402
.update('encrypted-file-content')
403403
.digest('hex')}.zip`,
404404
'encrypted-file-content',
405-
{ 'Cache-Control': 'no-store' },
405+
{
406+
'Cache-Control': 'no-store',
407+
'Content-Type': 'text/plain',
408+
},
406409
);
407410
});
408411

@@ -440,7 +443,10 @@ describe('StorageService', () => {
440443
.update('encrypted-file-content')
441444
.digest('hex')}.zip`,
442445
'encrypted-file-content',
443-
{ 'Cache-Control': 'no-store' },
446+
{
447+
'Cache-Control': 'no-store',
448+
'Content-Type': 'text/plain',
449+
},
444450
);
445451
});
446452

@@ -517,7 +523,10 @@ describe('StorageService', () => {
517523
.update('some-file-content')
518524
.digest('hex')}.zip`,
519525
someFileContent,
520-
{ 'Cache-Control': 'no-store' },
526+
{
527+
'Cache-Control': 'no-store',
528+
'Content-Type': 'text/plain',
529+
},
521530
);
522531
});
523532

@@ -556,7 +565,10 @@ describe('StorageService', () => {
556565
.update(someFileContent)
557566
.digest('hex')}.zip`,
558567
someFileContent,
559-
{ 'Cache-Control': 'no-store' },
568+
{
569+
'Cache-Control': 'no-store',
570+
'Content-Type': 'text/plain',
571+
},
560572
);
561573
});
562574
});

packages/apps/reputation-oracle/server/src/modules/storage/storage.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ export class StorageService {
238238
key,
239239
content,
240240
{
241+
'Content-Type': 'text/plain',
241242
'Cache-Control': 'no-store',
242243
},
243244
);

0 commit comments

Comments
 (0)