Commit f495a772 authored by liuwei's avatar liuwei

修改 proxy

parent c597fa52
...@@ -138,7 +138,6 @@ module.exports = function (options) { ...@@ -138,7 +138,6 @@ module.exports = function (options) {
option.body = ctx.request.rawBody option.body = ctx.request.rawBody
} }
ctx.request.headers['content-length'] = option.body && option.body.length || option.form && option.form.length
option.headers = Object.assign({}, ctx.request.headers) option.headers = Object.assign({}, ctx.request.headers)
delete option.headers['host'] delete option.headers['host']
......
{ {
"name": "request-proxy", "name": "request-proxy",
"version": "2.0.7", "version": "2.0.8",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "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