@azteam/express 1.2.386 → 1.2.388

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/lib/Server.js CHANGED
@@ -130,7 +130,7 @@ var Server = /*#__PURE__*/function () {
130
130
  app.use((0, _cors["default"])(function (req, callback) {
131
131
  var origin = req.header('Origin'),
132
132
  authorization = req.header('Authorization'),
133
- agent = req.header('User-Agent');
133
+ agent = req.header('User-Agent') || 'null';
134
134
  var error = null;
135
135
  if (!authorization && !agent.startsWith(systemUser)) {
136
136
  if (origin && whiteList && !whiteList.some(function (re) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/express",
3
- "version": "1.2.386",
3
+ "version": "1.2.388",
4
4
  "license": "MIT",
5
5
  "author": "toda <sp.azsolution.net@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -12,7 +12,7 @@
12
12
  "@azteam/constant": "1.0.7",
13
13
  "@azteam/crypto": "1.0.34",
14
14
  "@azteam/error": "1.0.32",
15
- "@azteam/http-client": "1.0.110",
15
+ "@azteam/http-client": "1.0.111",
16
16
  "@azteam/util": "1.0.36",
17
17
  "@azteam/validator": "1.0.17",
18
18
  "@grpc/grpc-js": "1.6.7",
package/src/Server.js CHANGED
@@ -106,7 +106,7 @@ class Server {
106
106
  cors(function (req, callback) {
107
107
  const origin = req.header('Origin'),
108
108
  authorization = req.header('Authorization'),
109
- agent = req.header('User-Agent');
109
+ agent = req.header('User-Agent') || 'null';
110
110
 
111
111
  let error = null;
112
112
  if (!authorization && !agent.startsWith(systemUser)) {