Merge branch 'release/hbs' of git.yoho.cn:fe/yohobuy-node into release/hbs
Showing
1 changed file
with
3 additions
and
2 deletions
@@ -15,7 +15,7 @@ const yohoLib = require('yoho-node-lib'); | @@ -15,7 +15,7 @@ const yohoLib = require('yoho-node-lib'); | ||
15 | yohoLib.global(config); | 15 | yohoLib.global(config); |
16 | 16 | ||
17 | const express = require('express'); | 17 | const express = require('express'); |
18 | -const compression = require('compression'); | 18 | +//const compression = require('compression'); |
19 | const path = require('path'); | 19 | const path = require('path'); |
20 | const bodyParser = require('body-parser'); | 20 | const bodyParser = require('body-parser'); |
21 | const cookieParser = require('cookie-parser'); | 21 | const cookieParser = require('cookie-parser'); |
@@ -51,7 +51,8 @@ app.use(express.static(path.join(__dirname, 'public'))); | @@ -51,7 +51,8 @@ app.use(express.static(path.join(__dirname, 'public'))); | ||
51 | app.use(bodyParser.json()); | 51 | app.use(bodyParser.json()); |
52 | app.use(bodyParser.urlencoded({extended: false})); | 52 | app.use(bodyParser.urlencoded({extended: false})); |
53 | app.use(cookieParser()); | 53 | app.use(cookieParser()); |
54 | -app.use(compression()); | 54 | + |
55 | +// app.use(compression()); | ||
55 | 56 | ||
56 | app.use(session({ | 57 | app.use(session({ |
57 | name: 'yohobuy_session_cookie', | 58 | name: 'yohobuy_session_cookie', |
-
Please register or login to post a comment