Skip to content
Snippets Groups Projects
Commit ee9c8e18 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

:fire: Remove compression module

Was bugging the response when enabled
parent ecc8ecfe
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -19,7 +19,6 @@
"chai": "^3.5.0",
"chai-http": "^3.0.0",
"chalk": "^1.1.3",
"compression": "^1.6.2",
"cookie-parser": "^1.3.5",
"cors": "^2.7.1",
"csv-express": "^1.1.0",
......
......@@ -3,7 +3,6 @@ const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const methodOverride = require('method-override');
const cors = require('cors');
const compression = require('compression');
const squel = require('squel');
const libs = `${process.cwd()}/libs`;
......@@ -30,8 +29,6 @@ app.use(cookieParser());
// Enable Cross-Origin Resource Sharing (CORS)
app.use(cors());
app.use(methodOverride());
// Enable maximum compression
app.use(compression(9));
// Middleware tha adds the squel object to req
app.use((req, res, next) => {
req.sql = squel.select();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment