From 6494d6daf8f71630e12ad8223032cffa4f759e0a Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 27 Oct 2020 17:42:10 +0700 Subject: [PATCH] Removing hxpress http compression --- backend/package.json | 1 - backend/src/index.ts | 2 -- 2 files changed, 3 deletions(-) diff --git a/backend/package.json b/backend/package.json index 6f1575a99..6fdfc44cf 100644 --- a/backend/package.json +++ b/backend/package.json @@ -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", diff --git a/backend/src/index.ts b/backend/src/index.ts index 8841c2fac..adc9cb64a 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -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());