yakuza0 2.23.22-beta.0 → 2.23.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.23.22-beta.0",
3
+ "version": "2.23.22",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -229,7 +229,7 @@ exports.default = function () {
229
229
  // console.log(req.crossParams.originUrl.match(new RegExp(`^\/(apiv2)\/`)), 22);
230
230
  // 保存原始的 Host 到 X-Host 请求头中
231
231
  var originalHost = req.headers.host;
232
- proxyReq.setHeader('x-cln-Host', originalHost);
232
+ proxyReq.setHeader(_def.variable.hostHeader, originalHost);
233
233
 
234
234
  if (!_config2.default.security.helmet) {
235
235
  proxyReq.setHeader(_def.variable.appCodeHeader, req && req.headers[_def.variable.appCodeHeader.toLowerCase()] || config.appConf && config.appConf.appCode);