aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utils.js b/src/utils.js
index 4aa1fc55e..30edcd0e9 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -30,7 +30,7 @@
30 } 30 }
31 } 31 }
32 32
33 logger.debug('Sending informations to %s.', to_pod.url, { params: params }) 33 logger.debug('Make retry requests to %s.', to_pod.url)
34 // Default 10 but in tests we want to be faster 34 // Default 10 but in tests we want to be faster
35 var retries = utils.isTestInstance() ? 2 : 10 35 var retries = utils.isTestInstance() ? 2 : 10
36 36
@@ -84,8 +84,6 @@
84 84
85 // Add data with POST requst ? 85 // Add data with POST requst ?
86 if (all_data.method === 'POST' && all_data.data) { 86 if (all_data.method === 'POST' && all_data.data) {
87 logger.debug('Make a POST request.')
88
89 // Encrypt data ? 87 // Encrypt data ?
90 if (all_data.encrypt === true) { 88 if (all_data.encrypt === true) {
91 var crt = ursa.createPublicKey(pod.publicKey) 89 var crt = ursa.createPublicKey(pod.publicKey)
@@ -109,7 +107,6 @@
109 makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest) 107 makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest)
110 } 108 }
111 } else { 109 } else {
112 logger.debug('Make a GET/DELETE request')
113 makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest) 110 makeRetryRequest(params, url, pod, signature, callbackEachRetryRequest)
114 } 111 }
115 }, callback) 112 }, callback)