fix(core): update

This commit is contained in:
Philipp Kunz 2024-01-19 20:51:59 +01:00
parent 754fa38fe8
commit e1dfe30273
3 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedserver',
version: '3.0.19',
version: '3.0.20',
description: 'easy serving of static files'
}

View File

@ -124,6 +124,11 @@ export class HandlerStatic extends Handler {
if (optionsArg && optionsArg.enableCompression) {
compressionResult = await this.compressor.maybeCompress(requestHeaders, fileBuffer, [optionsArg.preferredCompressionMethod]);
} else {
compressionResult = {
compressionMethod: 'none',
result: fileBuffer,
};
}
res.status(200);

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@api.global/typedserver',
version: '3.0.19',
version: '3.0.20',
description: 'easy serving of static files'
}