Permalink
Browse files

turns out this doesn't improve the situation

  • Loading branch information...
1 parent 7539dab commit e8224dcb567b0e7c46728c23edf18365dc62d117 @brosner brosner committed Dec 29, 2009
Showing with 1 addition and 6 deletions.
  1. +1 −6 contacts_import/oauth_consumer.py
@@ -141,17 +141,12 @@ def _oauth_request(self, url, token, http_method="GET", params=None):
def _oauth_response(self, request):
# @@@ not sure if this will work everywhere. need to explore more.
http = httplib2.Http()
- headers = {}
- headers.update(request.to_header())
if request.http_method == "POST":
ret = http.request(request.http_url, "POST",
data = request.to_postdata(),
- headers = headers,
)
else:
- ret = http.request(request.to_url(), "GET",
- headers = headers,
- )
+ ret = http.request(request.to_url(), "GET")
response, content = ret
logger.debug(repr(ret))
return content

0 comments on commit e8224dc

Please sign in to comment.