Skip to content

Commit

Permalink
Lowercase form submit method handled correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhioev committed Jul 2, 2013
1 parent e860669 commit 09118a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vk_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ def auth_user(email, password, client_id, scope, opener):
raise RuntimeError("Something wrong")
parser.params["email"] = email
parser.params["pass"] = password
if parser.method == "POST":
if parser.method.upper() == "POST":
response = opener.open(parser.url, urllib.urlencode(parser.params))
else:
raise NotImplementedError("Method '%s'" % params.method)
raise NotImplementedError("Method '%s'" % parser.method)
return response.read(), response.geturl()

# Permission request form
Expand Down

0 comments on commit 09118a9

Please sign in to comment.