Skip to content

Commit

Permalink
fix issue #5 by using proper URL encoding so passwords w/ special cha…
Browse files Browse the repository at this point in the history
…racters work as expected
  • Loading branch information
joshfraser committed Oct 6, 2016
1 parent af5007b commit 038270b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Robinhood.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def __init__(self):
def login(self, username, password):
self.username = username
self.password = password
data = "password=%s&username=%s" % (self.password, self.username)
fields = { 'password' : self.password, 'username' : self.username}
data = urllib.urlencode(fields)
res = self.session.post(self.endpoints['login'], data=data)
res = res.json()
try:
Expand Down

0 comments on commit 038270b

Please sign in to comment.