Commit 83c55103 authored by xzj's avatar xzj

修复host导致跳转到线上登录的问题

parent fd67c9fa
......@@ -138,7 +138,10 @@ module.exports = function (options) {
option.body = ctx.request.rawBody
}
option.headers = ctx.request.headers
option.headers = Object.assign({}, ctx.request.headers)
delete option.headers['host']
debug(option)
return new Promise(function (resolve, reject) {
let r = send()
r.on('error', function (err) {
......
{
"name": "request-proxy",
"version": "2.0.0",
"version": "2.0.1",
"description": "",
"main": "index.js",
"scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment