sebonlien / bitly-api

Automatically exported from code.google.com/p/bitly-api
0 stars 0 forks source link

If bit.ly api is used to shorten a url, it automatically appends a "slash" ( / ) in the end of the url. #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use bit.ly api to shorten http://www.google.com
2. Take the shortened url and see the info with http://shorturl+
3. You will see the long link shown as "http://www.google.com/

What is the expected output? What do you see instead?
The short url should be generated for exactly the same URL as giving in the
api request. 

What version of the product are you using? On what operating system?
I'm using the shorten url api.

Please provide any additional information below.

Original issue reported on code.google.com by anku...@gmail.com on 8 Aug 2009 at 2:51

GoogleCodeExporter commented 8 years ago
In the case where the uri shortened only includes the domain, it is valid (and
expected) for a slash to be entered to make it contain a valid path (ie: '/' is 
the path)

In the case where there is an existing path (say /path/to/somewhere) no trailing
slash is automatically entered

Original comment by jehiah on 18 Oct 2009 at 7:22