summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-05-10 17:41:16 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-05-10 17:41:16 +0900
commitbe183206e65408756e07fd44894da106b930333c (patch)
tree45e5191a036d439f354ab009145b394a8605ce9f /src/server
parentfix(client): Fix reply style (diff)
downloadsharkey-be183206e65408756e07fd44894da106b930333c.tar.gz
sharkey-be183206e65408756e07fd44894da106b930333c.tar.bz2
sharkey-be183206e65408756e07fd44894da106b930333c.zip
fix(server): Remove koa-compress
Diffstat (limited to 'src/server')
-rw-r--r--src/server/index.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 2834b5b703..15e1fedc98 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -6,11 +6,9 @@ import * as fs from 'fs';
import * as http from 'http';
import * as http2 from 'http2';
import * as https from 'https';
-import * as zlib from 'zlib';
import * as Koa from 'koa';
import * as Router from '@koa/router';
import * as mount from 'koa-mount';
-const compress = require('koa-compress');
import * as koaLogger from 'koa-logger';
import * as requestStats from 'request-stats';
import * as slow from 'koa-slow';
@@ -48,12 +46,6 @@ if (!['production', 'test'].includes(process.env.NODE_ENV || '')) {
}
}
-// Compress response
-app.use(compress({
- flush: zlib.constants.Z_SYNC_FLUSH,
- br: false
-}));
-
// HSTS
// 6months (15552000sec)
if (config.url.startsWith('https') && !config.disableHsts) {