Add bull and caching

This commit is contained in:
2023-11-20 15:25:07 -07:00
parent 5a54a9ca5b
commit 725cabefe6
7 changed files with 339 additions and 29 deletions

View File

@@ -89,7 +89,11 @@ export class KvController {
: Buffer.from(body)
: file.buffer,
secretKey,
{ public: publicFlag, mimeType: file.mimetype ?? 'text/plain' },
{
public: publicFlag,
mimeType:
file?.mimetype ?? request.headers['content-type'] ?? 'text/plain',
},
);
}
return 'No secret key provided within X-Secret-Key header';