Commit 3159ba42 by ken

试试看吧

parent 95b39b0b
...@@ -85,7 +85,9 @@ function depthByRest(callback) { ...@@ -85,7 +85,9 @@ function depthByRest(callback) {
let opt = { let opt = {
url: "http://api.zb.com/data/v1/depth?market=btc_usdt&size=10", url: "http://api.zb.com/data/v1/depth?market=btc_usdt&size=10",
method: "GET", method: "GET",
gzip: true, headers: {
Connection: "Keep-Alive"
}
}; };
request(opt, (error, response, body) => { request(opt, (error, response, body) => {
if ( !callback ) return; if ( !callback ) return;
......
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