Skip to content

Commit

Permalink
Fixes #453
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Mar 2, 2013
1 parent b3d14a1 commit 2f60bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ Request.prototype.oauth = function (_oauth) {
for (var i in form) oa[i] = form[i]
for (var i in _oauth) oa['oauth_'+i] = _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_timestamp) oa.oauth_timestamp = Math.floor( Date.now() / 1000 ).toString()
if (!oa.oauth_nonce) oa.oauth_nonce = uuid().replace(/-/g, '')

oa.oauth_signature_method = 'HMAC-SHA1'
Expand Down

0 comments on commit 2f60bc2

Please sign in to comment.