Permalink
Browse files

fix url encoding of OAuth signature for APIv2 JS examples

  • Loading branch information...
1 parent 1d729e8 commit 63966b4132d8a51aca0a1df51a7e8fc927b8d907 @gchin gchin committed Jan 20, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 v2/js/business.html
  2. +1 −0 v2/js/search.html
View
@@ -49,6 +49,7 @@
OAuth.SignatureMethod.sign(message, accessor);
var parameterMap = OAuth.getParameterMap(message.parameters);
+parameterMap.oauth_signature = OAuth.percentEncode(parameterMap.oauth_signature)
console.log(parameterMap);
$.ajax({
View
@@ -54,6 +54,7 @@
OAuth.SignatureMethod.sign(message, accessor);
var parameterMap = OAuth.getParameterMap(message.parameters);
+parameterMap.oauth_signature = OAuth.percentEncode(parameterMap.oauth_signature)
console.log(parameterMap);
$.ajax({

0 comments on commit 63966b4

Please sign in to comment.