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.
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.