chanjs 2.5.6 → 2.5.7

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.
Files changed (2) hide show
  1. package/App.js +1 -2
  2. package/package.json +1 -1
package/App.js CHANGED
@@ -241,8 +241,7 @@ class Chan {
241
241
  * @description 设置 Express 应用配置
242
242
  */
243
243
  setApp() {
244
- this.app.set("trust proxy", Chan.config.PROXY === "true");
245
- this.app.disable("x-powered-by");
244
+ this.app.set("trust proxy", true);
246
245
  }
247
246
 
248
247
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "chanjs",
4
- "version": "2.5.6",
4
+ "version": "2.5.7",
5
5
  "description": "chanjs基于express5 纯js研发的轻量级mvc框架。",
6
6
  "main": "index.js",
7
7
  "module": "index.js",