fix(core): update

This commit is contained in:
Philipp Kunz 2024-01-09 11:38:06 +01:00
parent 21938e5f20
commit 622da78180
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -123,7 +123,7 @@ export class HandlerStatic extends Handler {
let compressionResult: ICompressionResult;
if (optionsArg && optionsArg.enableCompression) {
compressionResult = await this.compressor.maybeCompress(requestHeaders, fileBuffer);
compressionResult = await this.compressor.maybeCompress(requestHeaders, fileBuffer, [optionsArg.preferredCompressionMethod]);
}
res.status(200);

View File

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