node-oauth1
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -293,6 +293,7 @@ /* jshint ignore:start */ | ||
getAuthorizationHeader: function getAuthorizationHeader(realm, parameters) { | ||
var header = 'OAuth '; | ||
var header = 'OAuth ', | ||
headerParams = []; | ||
if (realm && realm.trim()) { | ||
header = header + 'realm="' + OAuth.percentEncode(realm) + '"'; | ||
headerParams.push(['realm', '"'+OAuth.percentEncode(realm)+'"'].join('=')); | ||
} | ||
@@ -314,6 +315,6 @@ | ||
if (name.indexOf('oauth_') == 0) { | ||
header = header + OAuth.percentEncode(name) + '="' + OAuth.percentEncode(value) + '",'; | ||
headerParams.push([OAuth.percentEncode(name), '"'+OAuth.percentEncode(value)+'"'].join('=')); | ||
} | ||
} | ||
return header.slice(0, -1); // remove the trailing comma | ||
return header + headerParams.join(','); | ||
} | ||
@@ -320,0 +321,0 @@ , |
{ | ||
"name": "node-oauth1", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"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
24136
553