diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-05-10 17:41:16 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-05-10 17:41:16 +0900 |
| commit | be183206e65408756e07fd44894da106b930333c (patch) | |
| tree | 45e5191a036d439f354ab009145b394a8605ce9f /src/server | |
| parent | fix(client): Fix reply style (diff) | |
| download | sharkey-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.ts | 8 |
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) { |