uploadcare
Advanced tools
Comparing version 0.4.5 to 0.4.6
@@ -75,2 +75,3 @@ "use strict"; | ||
if(!options.data) { request_data = ''; } | ||
var ssl = options.ssl !== false; | ||
@@ -86,3 +87,3 @@ //Prepare headers | ||
host: 'api.uploadcare.com', | ||
port: (options.ssl ? 443 : 80), | ||
port: (ssl ? 443 : 80), | ||
path: path, | ||
@@ -98,3 +99,3 @@ method: method, | ||
var req = (options.ssl ? https.request(request_options) : http.request(request_options)); | ||
var req = (ssl ? https.request(request_options) : http.request(request_options)); | ||
@@ -101,0 +102,0 @@ req.on('response',function(res){ |
{ | ||
"name": "uploadcare", | ||
"version": "0.4.5", | ||
"version": "0.4.6", | ||
"description": "Library for uploadcare.com.", | ||
@@ -12,3 +12,3 @@ "keywords": [ | ||
"homepage": "https://github.com/rexmorgan/uploadcare-node", | ||
"author": "Rex Morgan <rex.morgan@gmail.com> (http://rexflex.net)", | ||
"author": "Rex Morgan <rex@rexflex.net> (http://rexflex.net)", | ||
"contributors": [ | ||
@@ -15,0 +15,0 @@ "Olivier Leduc <olivier@leduc.cc> (http://pro.leduc.cc/)", |
249491
388