Skip to content

Commit 48e38c6

Browse files
tammoippendjc
authored andcommitted
Allow path to also be a list for urljoin to do its magic
1 parent 0d29ecc commit 48e38c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

couchdb/http.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,10 @@ def _request(self, method, path=None, body=None, headers=None, **params):
581581
all_headers = self.headers.copy()
582582
all_headers.update(headers or {})
583583
if path is not None:
584-
url = urljoin(self.url, path, **params)
584+
if isinstance(path, list):
585+
url = urljoin(self.url, *path, **params)
586+
else:
587+
url = urljoin(self.url, path, **params)
585588
else:
586589
url = urljoin(self.url, **params)
587590
return self.session.request(method, url, body=body,

0 commit comments

Comments
 (0)