-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi ! Trying to use the uri
method, it seems to have some odd behavior when the url ends with a backslash. The method (link to code):
def uri(self, uri):
if self._url is None:
return self
if self._url.endswith('/') and uri.startswith('/'):
self._url += uri[:1]
elif self._url.endswith('/') and not uri.startswith('/'):
self._url += "/" + uri
else:
self._url += uri
return self
- For
self._url = "http://example.com/"
&uri = "/example/path"
, the method returns"http://example.com//"
- For
self._url = "http://example.com/"
&uri = "example/path"
, the method returns"http://example.com//example/path"
Is this intended for a particular reason / case ?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working