diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/wget.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 7e43d3bc97..4d19e2134b 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -372,7 +372,10 @@ class Wget(FetchMethod): | |||
372 | 372 | ||
373 | try: | 373 | try: |
374 | parts = urllib.parse.urlparse(ud.url.split(";")[0]) | 374 | parts = urllib.parse.urlparse(ud.url.split(";")[0]) |
375 | uri = "{}://{}{}".format(parts.scheme, parts.netloc, parts.path) | 375 | if parts.query: |
376 | uri = "{}://{}{}?{}".format(parts.scheme, parts.netloc, parts.path, parts.query) | ||
377 | else: | ||
378 | uri = "{}://{}{}".format(parts.scheme, parts.netloc, parts.path) | ||
376 | r = urllib.request.Request(uri) | 379 | r = urllib.request.Request(uri) |
377 | r.get_method = lambda: "HEAD" | 380 | r.get_method = lambda: "HEAD" |
378 | # Some servers (FusionForge, as used on Alioth) require that the | 381 | # Some servers (FusionForge, as used on Alioth) require that the |