philnash / bitly

🗜 A Ruby wrapper for the bit.ly API
https://rubygems.org/gems/bitly
MIT License
451 stars 139 forks source link

don't explode when the URL returned from bitly doesn't exactly match the URL provided by the user #55

Closed ctide closed 4 years ago

ctide commented 10 years ago

Currently, the gem will fail when the URL passed in to shorten doesn't exactly match the URL returned from the Bitly API. An example of this is when a query parameter is passed in with a space as the value, Bitly's API will return it without the space included, causing the gem to throw an exception.

TheTeaNerd commented 10 years ago

:+1: