summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/wget.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/wget.py')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index fcb71246d9..198426065b 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -376,8 +376,8 @@ class Wget(FetchMethod):
376 opener = urllib.request.build_opener(*handlers) 376 opener = urllib.request.build_opener(*handlers)
377 377
378 try: 378 try:
379 uri_base = ud.url.split(";")[0] 379 parts = urllib.parse.urlparse(ud.url.split(";")[0])
380 uri = "{}://{}{}".format(urllib.parse.urlparse(uri_base).scheme, ud.host, ud.path) 380 uri = "{}://{}{}".format(parts.scheme, parts.netloc, parts.path)
381 r = urllib.request.Request(uri) 381 r = urllib.request.Request(uri)
382 r.get_method = lambda: "HEAD" 382 r.get_method = lambda: "HEAD"
383 # Some servers (FusionForge, as used on Alioth) require that the 383 # Some servers (FusionForge, as used on Alioth) require that the