node-oauth1
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -303,5 +303,10 @@ /* jshint ignore:start */ | ||
var name = parameter[0]; | ||
var value = parameter[1]; | ||
if (typeof value.toString === 'function') { | ||
value = value.toString().trim(); | ||
} | ||
// Skip adding params with no value | ||
if (!parameter[1] || !parameter[1].trim()) { | ||
if (!value) { | ||
continue; | ||
@@ -311,3 +316,3 @@ } | ||
if (name.indexOf("oauth_") == 0) { | ||
header += ',' + OAuth.percentEncode(name) + '="' + OAuth.percentEncode(parameter[1]) + '"'; | ||
header += ',' + OAuth.percentEncode(name) + '="' + OAuth.percentEncode(value) + '"'; | ||
} | ||
@@ -314,0 +319,0 @@ } |
{ | ||
"name": "node-oauth1", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "A fork of Netflix's implementation of the OAuth1 protocol", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24091
554