Skip to content

Commit 4db6433

Browse files
committed
Merge branch 'master' of github.com:oauth-xx/oauth-ruby
2 parents 0a5cc1c + a03bc8b commit 4db6433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/oauth/tokens/request_token.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def get_access_token(options = {}, *arguments)
2626
# construct an authorization url
2727
def build_authorize_url(base_url, params)
2828
uri = URI.parse(base_url.to_s)
29-
if(!uri.query.blank? && !params.empty?)
29+
if(uri.query && !uri.query.blank? && !params.empty?)
3030
uri.query += "&"
3131
end
3232
# TODO doesn't handle array values correctly

0 commit comments

Comments
 (0)