From 9a4a6f353538a08b9182a22d095938bda8876a4b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 15 Oct 2022 09:24:18 +0100 Subject: [PATCH] Use urlsplit() instead of urlparse() (#184) --- dj_database_url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dj_database_url.py b/dj_database_url.py index cfcb7cb..c9198e2 100644 --- a/dj_database_url.py +++ b/dj_database_url.py @@ -70,7 +70,7 @@ def parse(url, engine=None, conn_max_age=0, ssl_require=False): # otherwise parse the url as normal parsed_config = {} - url = urlparse.urlparse(url) + url = urlparse.urlsplit(url) # Split query strings from path. path = url.path[1:]