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 +2 -4
- package/biz/webui/cgi-bin/composer.js +0 -1
- package/biz/webui/cgi-bin/get-data.js +5 -0
- package/biz/webui/cgi-bin/rootca.js +2 -2
- package/biz/webui/htdocs/img/qrcode-cer.png +0 -0
- package/biz/webui/htdocs/img/qrcode-crt.png +0 -0
- package/biz/webui/htdocs/img/qrcode-pem.png +0 -0
- package/biz/webui/htdocs/index.html +1 -1
- package/biz/webui/htdocs/js/index.js +15 -15
- package/biz/webui/lib/index.js +36 -30
- package/lib/https/index.js +24 -7
- package/lib/init.js +8 -4
- package/lib/inspectors/data.js +13 -25
- package/lib/inspectors/res.js +2 -2
- package/lib/plugins/index.js +1 -1
- package/lib/util/data-server.js +77 -14
- package/lib/util/index.js +1 -1
- package/package.json +2 -2
- package/biz/webui/htdocs/img/qrcode.png +0 -0
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
|
-
|
|
94
|
-
|
|
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 !== '
|
|
6
|
-
type = '
|
|
5
|
+
if (type !== 'crt' && type !== 'pem') {
|
|
6
|
+
type = 'cer';
|
|
7
7
|
}
|
|
8
8
|
res.download(getRootCAFile(), 'rootCA.' + type);
|
|
9
9
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|