Comparing version
@@ -113,4 +113,8 @@ // Generated by CoffeeScript 1.9.1 | ||
} | ||
if (kwargs.args != null) { | ||
if (Object.keys(kwargs.args).length !== 0) { | ||
request_options.url += '?' + querystring.stringify(kwargs.args); | ||
} else { | ||
if (request_options.url.substr(-1) === '/') { | ||
request_options.url = request_options.url.substr(0, request_options.url.length - 1); | ||
} | ||
} | ||
@@ -117,0 +121,0 @@ if (kwargs.data != null) { |
{ | ||
"name": "slumber", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Port of Python's slumber library -- A library that makes consuming a RESTful API easier and more convenient", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
70859
0.5%1127
0.36%