Skip to content
This repository was archived by the owner on Feb 13, 2018. It is now read-only.

Commit 6bcad9f

Browse files
author
Tim Whitlock
committed
typo requiring querystring
1 parent ed73a33 commit 6bcad9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/twitter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ TwitterClient.prototype._oauthExchange = function( requestUri, requestArgs, auth
443443
} );
444444
res.on('end', function(){
445445
var token,
446-
params = 0 === body.indexOf('{') ? JSON.parse(body) : body.require('querystring').parse(body);
446+
params = 0 === body.indexOf('{') ? JSON.parse(body) : require('querystring').parse(body);
447447
if( 'bearer' === params.token_type ){
448448
token = decodeURIComponent( params.access_token );
449449
}

0 commit comments

Comments
 (0)