Skip to content

Commit

Permalink
fix: 修复whistle特殊头,造成请求二次到达whistle出现解析规则错误
Browse files Browse the repository at this point in the history
  • Loading branch information
hxfdarling committed Sep 10, 2019
1 parent 137841c commit a44c820
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ function ClientRequestProxy(uri, options, cb, isHttps) {
}
Object.assign(options.headers, proxy.headers);
}
// 清理whistle特殊请求头
delete options.headers['x-whistle-real-host'];
delete options.headers['x-whistle-https-request'];
delete options.headers['x-nohost-client-version'];
}
ClientRequest.call(this, options, cb);
}
Expand Down

0 comments on commit a44c820

Please sign in to comment.