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 ?
Hi ! Trying to use the
urimethod, it seems to have some odd behavior when the url ends with a backslash. The method (link to code):self._url = "http://example.com/"&uri = "/example/path", the method returns"http://example.com//"self._url = "http://example.com/"&uri = "example/path", the method returns"http://example.com//example/path"Is this intended for a particular reason / case ?