bitly / bitly-api-python

python library to the bitly api
http://github.com/bitly/bitly-api-python
Other
244 stars 92 forks source link

Fix for urls with non-ascii characters being double encoded. #9

Closed kylemcc closed 11 years ago

kylemcc commented 12 years ago

Urls to be shorted were being double-encoded. This would fail if a url actually contained any non-ascii characters. Connection.shorten was encoding the url via url.encode('UTF-8'). This, however, was already being done in the _call method. I removed the encoding in shorten.

jehiah commented 11 years ago

this is fixed in version 0.2 of the library.