Skip to content

Commit 5c8a8c4

Browse files
committed
fix brotli encoding header
1 parent c69c89f commit 5c8a8c4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rtjscomp",
3-
"version": "0.12.1",
3+
"version": "0.12.2",
44
"description": "php-like server but with javascript",
55
"repository": {
66
"type": "git",

rtjscomp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const COMPRESS_METHOD_NONE = 0;
1818
const COMPRESS_METHOD_GZIP = 1;
1919
const COMPRESS_METHOD_BROTLI = 2;
2020
const COMPRESS_METHOD_ZSTD = 3;
21-
const COMPRESS_METHODS = ',gzip,brotli,zstd'.split(',');
21+
const COMPRESS_METHODS = ',gzip,br,zstd'.split(',');
2222
const GZIP_OPTIONS = {level: 9};
2323
const HAS_BROTLI = zlib.createBrotliCompress != null;
2424
const HAS_ZSTD = zlib.createZstdCompress != null;

0 commit comments

Comments
 (0)