Skip to content

Commit

Permalink
fixed bug where parse_qsl was erroring
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Jul 7, 2010
1 parent 8001632 commit 52d68c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oauth_access/access.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import logging
import socket
import urllib
import urlparse

from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
Expand Down Expand Up @@ -275,7 +276,7 @@ def request(self, uri, method="GET", body=None, headers=None,
is_multipart = method == "POST" and headers.get("Content-Type", DEFAULT_CONTENT_TYPE) != DEFAULT_CONTENT_TYPE

if body and method == "POST" and not is_multipart:
parameters = dict(parse_qsl(body))
parameters = dict(urlparse.parse_qsl(body))
else:
parameters = None

Expand Down

0 comments on commit 52d68c2

Please sign in to comment.