Removing hxpress http compression

This commit is contained in:
softsimon 2020-10-27 17:42:10 +07:00
parent 396ff6a375
commit 6494d6daf8
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 0 additions and 3 deletions

View File

@ -25,7 +25,6 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"compression": "^1.7.4",
"express": "^4.17.1",
"locutus": "^2.0.12",
"mysql2": "^1.6.1",

View File

@ -1,6 +1,5 @@
import { Express, Request, Response, NextFunction } from 'express';
import * as express from 'express';
import * as compression from 'compression';
import * as http from 'http';
import * as https from 'https';
import * as WebSocket from 'ws';
@ -66,7 +65,6 @@ class Server {
res.setHeader('Access-Control-Allow-Origin', '*');
next();
})
.use(compression())
.use(express.urlencoded({ extended: true }))
.use(express.json());