Comparing version 0.0.12 to 0.0.13
@@ -98,14 +98,18 @@ | ||
api_headers.Authorization = 'Zoho-oauthtoken '+access_token; | ||
api_headers["User-Agent"] = 'Zoho CRM Node SDK'; | ||
if(request.headers){ | ||
for(i in headers){ | ||
var header_keys = Object.keys(request.headers); | ||
for(i in header_keys){ | ||
api_headers.i = headers[i]; | ||
api_headers[header_keys[i]] = request.headers[header_keys[i]]; | ||
} | ||
} | ||
api_headers.Authorization = 'Zoho-oauthtoken '+access_token; | ||
api_headers["User-Agent"] = 'Zoho CRM Node SDK'; | ||
httpclient({ | ||
@@ -244,2 +248,6 @@ | ||
} | ||
if(input.headers){ | ||
requestDetails.headers = input.headers; | ||
} | ||
} | ||
@@ -246,0 +254,0 @@ requestDetails.url = url; |
{ | ||
"name": "zcrmsdk", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Node SDK for Zoho CRM", | ||
@@ -5,0 +5,0 @@ "main": "lib/js/ZCRMRestClient", |
35643
712