Commit 78744f2a authored by 郝聪敏's avatar 郝聪敏

option添加time参数

parent 774dd113
...@@ -30,6 +30,7 @@ module.exports = function (options) { ...@@ -30,6 +30,7 @@ module.exports = function (options) {
const curlDefault = { const curlDefault = {
followRedirect: false, followRedirect: false,
json: true, json: true,
time: true,
timeout: options.timeout timeout: options.timeout
} }
...@@ -43,6 +44,7 @@ module.exports = function (options) { ...@@ -43,6 +44,7 @@ module.exports = function (options) {
} }
const pipeDefault = { const pipeDefault = {
time: true,
timeout: options.timeout timeout: options.timeout
} }
......
{ {
"name": "request-proxy", "name": "request-proxy",
"version": "1.2.3", "version": "1.2.4",
"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