projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added projects to user management
[osm/UI.git]
/
skyquake
/
skyquake.js
diff --git
a/skyquake/skyquake.js
b/skyquake/skyquake.js
index
4c5adcf
..
685f049
100644
(file)
--- a/
skyquake/skyquake.js
+++ b/
skyquake/skyquake.js
@@
-1,3
+1,5
@@
+
+
/*
*
* Copyright 2016 RIFT.IO Inc
/*
*
* Copyright 2016 RIFT.IO Inc
@@
-110,7
+112,7
@@
if (cluster.isMaster && clusteredLaunch) {
app.use(session({
secret: 'ritio rocks',
app.use(session({
secret: 'ritio rocks',
- resave:
tru
e,
+ resave:
fals
e,
saveUninitialized: true
}));
app.use(bodyParser.json());
saveUninitialized: true
}));
app.use(bodyParser.json());
@@
-272,6
+274,13
@@
if (cluster.isMaster && clusteredLaunch) {
app.get('/multiplex-client', function(req, res) {
res.sendFile(__dirname + '/node_modules/websocket-multiplex/multiplex_client.js');
});
app.get('/multiplex-client', function(req, res) {
res.sendFile(__dirname + '/node_modules/websocket-multiplex/multiplex_client.js');
});
+
+ // handle requests for gzip'd files
+ app.get('*gzip*', function (req, res, next) {
+ res.set('Content-Encoding', 'gzip');
+ next();
+ });
+
}
/**
}
/**