equal
deleted
inserted
replaced
1692 # // is required to specify a host/authority |
1692 # // is required to specify a host/authority |
1693 if path and path.startswith('//'): |
1693 if path and path.startswith('//'): |
1694 parts = path[2:].split('/', 1) |
1694 parts = path[2:].split('/', 1) |
1695 if len(parts) > 1: |
1695 if len(parts) > 1: |
1696 self.host, path = parts |
1696 self.host, path = parts |
1697 path = path |
|
1698 else: |
1697 else: |
1699 self.host = parts[0] |
1698 self.host = parts[0] |
1700 path = None |
1699 path = None |
1701 if not self.host: |
1700 if not self.host: |
1702 self.host = None |
1701 self.host = None |