node-oauth1
Advanced tools
Comparing version 1.1.3 to 1.2.0
14
index.js
@@ -305,2 +305,5 @@ /* jshint ignore:start */ | ||
// Skip adding params with no value | ||
if (!value) { continue; } | ||
if (typeof value.toString === 'function') { | ||
@@ -310,12 +313,7 @@ value = value.toString().trim(); | ||
// Skip adding params with no value | ||
if (!value) { | ||
continue; | ||
if (name.indexOf('oauth_') == 0) { | ||
header = header + OAuth.percentEncode(name) + '="' + OAuth.percentEncode(value) + '",'; | ||
} | ||
if (name.indexOf("oauth_") == 0) { | ||
header += ',' + OAuth.percentEncode(name) + '="' + OAuth.percentEncode(value) + '"'; | ||
} | ||
} | ||
return header; | ||
return header.slice(0, -1); // remove the trailing comma | ||
} | ||
@@ -322,0 +320,0 @@ , |
{ | ||
"name": "node-oauth1", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "A fork of Netflix's implementation of the OAuth1 protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
24101
552