X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fskyquake.js;h=685f049f0e010ca830a96dfd86d07abcaf8fd22c;hp=2396e1a1768073aa21730d5be12f774755a0698c;hb=refs%2Fheads%2Fprojects;hpb=82636716208a765fb63214d958cb7bc73fe19fc2 diff --git a/skyquake/skyquake.js b/skyquake/skyquake.js index 2396e1a17..685f049f0 100644 --- a/skyquake/skyquake.js +++ b/skyquake/skyquake.js @@ -1,3 +1,5 @@ + + /* * * Copyright 2016 RIFT.IO Inc @@ -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'); }); + + // handle requests for gzip'd files + app.get('*gzip*', function (req, res, next) { + res.set('Content-Encoding', 'gzip'); + next(); + }); + } /**