whistle 2.9.83 → 2.9.85-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/biz/index.js CHANGED
@@ -90,10 +90,8 @@ module.exports = function(req, res, next) {
90
90
  }
91
91
  if (isWebUI) {
92
92
  req.fromInternalPath = true;
93
- if (!req.headers.origin) {
94
- var hostname = (req._fwdHost && util.parseHost(req._fwdHost)[0]) || host;
95
- req.headers['x-whistle-origin-host'] = hostname || '*';
96
- }
93
+ var hostname = (req._fwdHost && util.parseHost(req._fwdHost)[0]) || host;
94
+ req.headers['x-whistle-origin-host'] = hostname || '*';
97
95
  }
98
96
  }
99
97
  } else {
@@ -275,7 +275,6 @@ module.exports = function(req, res) {
275
275
  headers['sec-websocket-key'] = crypto.randomBytes(16).toString('base64');
276
276
  }
277
277
  } else {
278
- headers.connection = 'close';
279
278
  delete headers.upgrade;
280
279
  if (!isConn && ((useH2 && (protocol === 'https:' || protocol === 'http:')) || protocol === 'h2:' || protocol === 'http2:')) {
281
280
  req.body.useH2 = true;
@@ -13,6 +13,11 @@ module.exports = function(req, res) {
13
13
  var data = req.query;
14
14
  if (data.ids && typeof data.ids == 'string') {
15
15
  data.ids = data.ids.split(',');
16
+ if (data.status && typeof data.status == 'string') {
17
+ data.status = data.status.split(',');
18
+ } else {
19
+ data.status = null;
20
+ }
16
21
  } else {
17
22
  data.ids = null;
18
23
  }
@@ -2,8 +2,8 @@ var getRootCAFile = require('../../../lib/https/ca').getRootCAFile;
2
2
 
3
3
  module.exports = function(req, res) {
4
4
  var type = req.query.type;
5
- if (type !== 'cer' && type !== 'pem') {
6
- type = 'crt';
5
+ if (type !== 'crt' && type !== 'pem') {
6
+ type = 'cer';
7
7
  }
8
8
  res.download(getRootCAFile(), 'rootCA.' + type);
9
9
  };
Binary file
Binary file
@@ -8,6 +8,6 @@
8
8
  </head>
9
9
  <body style="overscroll-behavior-x: none;">
10
10
  <div id="container" class="main"></div>
11
- <script src="js/index.js?v=2.9.83"></script>
11
+ <script src="js/index.js?v=2.9.85"></script>
12
12
  </body>
13
13
  </html>