diff options
author | Stefan Klug <stefan.klug@baslerweb.com> | 2019-03-18 14:58:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-19 15:29:26 +0000 |
commit | 9481e9cd688f635a7fe2ac60d5826ac26f0cb9ba (patch) | |
tree | 4d619b26a44f16b115efe098256027a0e3a551d2 /lib/bb/fetch2 | |
parent | 6065540cb923cde2299b1c16a4e2bb9376186799 (diff) | |
download | bitbake-9481e9cd688f635a7fe2ac60d5826ac26f0cb9ba.tar.gz |
fetch2/wget: Fix authentication in checkstatus() of the wget fetcher
I wonder how this used to work for anybody.
Signed-off-by: Stefan Klug <stefan.klug@baslerweb.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2')
-rw-r--r-- | lib/bb/fetch2/wget.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py index e2037511d..3addb219d 100644 --- a/lib/bb/fetch2/wget.py +++ b/lib/bb/fetch2/wget.py @@ -322,8 +322,8 @@ class Wget(FetchMethod): authheader = "Basic %s" % encodeuser r.add_header("Authorization", authheader) - if ud.user: - add_basic_auth(ud.user, r) + if ud.user and ud.pswd: + add_basic_auth(ud.user + ':' + ud.pswd, r) try: import netrc, urllib.parse |