Skip to content

Commit

Permalink
Remove the global i as it's causing my test suites to fail with lea…
Browse files Browse the repository at this point in the history
…k detection turned on.
  • Loading branch information
3rd-Eden committed Nov 26, 2011
1 parent 97d0c43 commit d7af099
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ Request.prototype.request = function () {
}
if (!form) form = {}
var oa = {}
for (i in form) oa[i] = form[i]
for (i in self.oauth) oa['oauth_'+i] = self.oauth[i]
for (var i in form) oa[i] = form[i]
for (var i in self.oauth) oa['oauth_'+i] = self.oauth[i]
if (!oa.oauth_version) oa.oauth_version = '1.0'
if (!oa.oauth_timestamp) oa.oauth_timestamp = Math.floor( (new Date()).getTime() / 1000 ).toString()
if (!oa.oauth_nonce) oa.oauth_nonce = uuid().replace(/-/g, '')
Expand All @@ -215,7 +215,7 @@ Request.prototype.request = function () {
var signature = oauth.hmacsign(self.method, baseurl, oa, consumer_secret, token_secret)

// oa.oauth_signature = signature
for (i in form) {
for (var i in form) {
if ( i.slice(0, 'oauth_') in self.oauth) {
// skip
} else {
Expand Down

0 comments on commit d7af099

Please sign in to comment.