Commit c597fa52 authored by liuwei's avatar liuwei

升级

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