Commit ef75912e authored by xzj's avatar xzj

代码整理,更新文档

parent e1f3879a
## 介绍
v2版本新特性:
1.路由使用bodyParser解析post请求后,pipe仍然可以把urlencoded 和 json格式的
数据传递给后端服务
中间件使用了agentkeepalive,通过复用socket来减少资源占用,加快代理响应速度。
## 发布方式
......
......@@ -134,7 +134,7 @@ module.exports = function (options) {
if (ctx.method === 'POST' && ctx.is('json', 'urlencoded') && ctx.request.body) {
if (ctx.is('urlencoded')) {
option.form = ctx.request.rawBody
} else if (ctx.is('json')) {
} else {
option.body = ctx.request.rawBody
}
......
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