diff --git a/lib/client.js b/lib/client.js index ad954c1..7b201af 100644 --- a/lib/client.js +++ b/lib/client.js @@ -91,7 +91,7 @@ function Client (globalRequest, maxSockets) { //if maxsockets where provided use the apropriate agent if(maxSockets) { - request.agent = endpointRequest.test == true ? httpAgent : httpsAgent + request.agent = endpointRequest.test === true ? httpAgent : httpsAgent } return request } @@ -100,7 +100,7 @@ function Client (globalRequest, maxSockets) { this.API = function (endpointRequest, callback) { var request = buildRequest(globalRequest, endpointRequest) - if ( endpointRequest.test == true ) { + if ( endpointRequest.test === true ) { var http_request = http request.port = endpointRequest.port } else {