assetnote / kiterunner

Contextual Content Discovery Tool
GNU Affero General Public License v3.0
2.64k stars 296 forks source link

Handle visual bug with multiple `/` in the base path and the request #13

Closed minight closed 3 years ago

minight commented 3 years ago

When a target is supplied with a basepath of /, e.g. http://example.com/, we display a request being sent to http://example.com//foo.txt.

however, this appears to be a visual bug, as our http library will collapse consecutive //.

image

The duplication likely occurs when when we concat the basepath / with the / prefixed path, http://example.com/ + /foo.txt when printing the result.

it may be worthwhile either:

Issue reported by @NayrGames on twitter.