From 7af4cd81452e250f235b145d7dd30d68ee53b98e Mon Sep 17 00:00:00 2001 From: Yuki Akiyama Date: Mon, 20 Mar 2017 16:01:50 +0900 Subject: [PATCH] Update public_api.js --- lib/public_api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/public_api.js b/lib/public_api.js index 7fc5f41..acc3104 100644 --- a/lib/public_api.js +++ b/lib/public_api.js @@ -25,6 +25,7 @@ var createGetOption = function(url, user_agent, qs, timeout){ method: 'GET', headers: createHeader(user_agent), timeout : Math.floor(constant.OPT_TIMEOUT_SEC * 1000), + forever : constant.OPT_KEEPALIVE, transform2xxOnly : true, transform : function(body){ return JSON.parse(body)