Fixed bug preventing prefix from being set to empty string

`http://%s:%d/%s`

и rstrip('/') после