@midwayjs/koa 3.15.10 → 3.15.11

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/dist/framework.js CHANGED
@@ -150,11 +150,11 @@ let MidwayKoaFramework = class MidwayKoaFramework extends core_1.BaseFramework {
150
150
  ...this.configurationOptions.serverOptions,
151
151
  };
152
152
  // https config
153
- if (this.configurationOptions.key && this.configurationOptions.cert) {
154
- this.configurationOptions.key = core_1.PathFileUtil.getFileContentSync(this.configurationOptions.key);
155
- this.configurationOptions.cert = core_1.PathFileUtil.getFileContentSync(this.configurationOptions.cert);
156
- this.configurationOptions.ca = core_1.PathFileUtil.getFileContentSync(this.configurationOptions.ca);
157
- if (this.configurationOptions.http2) {
153
+ if (serverOptions.key && serverOptions.cert) {
154
+ serverOptions.key = core_1.PathFileUtil.getFileContentSync(serverOptions.key);
155
+ serverOptions.cert = core_1.PathFileUtil.getFileContentSync(serverOptions.cert);
156
+ serverOptions.ca = core_1.PathFileUtil.getFileContentSync(serverOptions.ca);
157
+ if (serverOptions.http2) {
158
158
  this.server = require('http2').createSecureServer(serverOptions, this.app.callback());
159
159
  }
160
160
  else {
@@ -162,7 +162,7 @@ let MidwayKoaFramework = class MidwayKoaFramework extends core_1.BaseFramework {
162
162
  }
163
163
  }
164
164
  else {
165
- if (this.configurationOptions.http2) {
165
+ if (serverOptions.http2) {
166
166
  this.server = require('http2').createServer(serverOptions, this.app.callback());
167
167
  }
168
168
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/koa",
3
- "version": "3.15.10",
3
+ "version": "3.15.11",
4
4
  "description": "Midway Web Framework for KOA",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -45,5 +45,5 @@
45
45
  "engines": {
46
46
  "node": ">=12"
47
47
  },
48
- "gitHead": "11f56659d35b95d5abebceab40bf4e9ac7b67b99"
48
+ "gitHead": "5bf318ca3f6d27e46db173fe4af3a859a40a6c88"
49
49
  }