xshell 1.2.77 → 1.2.79

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/server.js CHANGED
@@ -509,13 +509,13 @@ export class Server {
509
509
  ? filter_values({ ..._queries, ...queries })
510
510
  : _queries,
511
511
  body,
512
- headers: (headers_
513
- ? filter_values({
514
- ...headers,
515
- 'x-forwarded-for': x_forwarded_for,
516
- ...headers_
517
- })
518
- : { ...headers, 'x-forwarded-for': x_forwarded_for }),
512
+ headers: filter_values({
513
+ ...headers,
514
+ // 防止出现 https 证书和源请求对不上的问题
515
+ host: null,
516
+ 'x-forwarded-for': x_forwarded_for,
517
+ ...headers_
518
+ }),
519
519
  raw: true,
520
520
  redirect,
521
521
  timeout,