Skip to content
Browse files

bugfix: convert URL to str (e.g., unicode is not supported)

  • Loading branch information...
1 parent fd9b878 commit 19d27bb8b68b2f68dc16f0ece4cfc9c339167334 @lirazsiri lirazsiri committed Jul 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 pylib/pycurl_wrapper.py
View
2 pylib/pycurl_wrapper.py
@@ -24,7 +24,7 @@ def __init__(self, url, headers={}, cainfo=None, verbose=False):
self.response_data = None
self.c = pycurl.Curl()
- self.c.setopt(pycurl.URL, self.url)
+ self.c.setopt(pycurl.URL, str(self.url))
self.c.setopt(pycurl.VERBOSE, verbose)
headers = map(lambda val: "%s: %s" % (val, headers[val]), headers)

0 comments on commit 19d27bb

Please sign in to comment.
Something went wrong with that request. Please try again.