summaryrefslogtreecommitdiff
path: root/guix/download.scm
diff options
context:
space:
mode:
authorDavid Thompson <davet@gnu.org>2016-06-28 09:36:34 -0400
committerDavid Thompson <davet@gnu.org>2016-06-29 08:51:41 -0400
commit242ad41c0129eabfdc6678ae9eebd1c887ece55e (patch)
tree02b31b395b32fb98c1b06e7e37848055d0bde1e3 /guix/download.scm
parent8dec2229a2ac97e2bf340e9b7ddefdbf60dbb95d (diff)
downloadgnu-guix-242ad41c0129eabfdc6678ae9eebd1c887ece55e.tar
gnu-guix-242ad41c0129eabfdc6678ae9eebd1c887ece55e.tar.gz
download: Use basic authentication when userinfo is present in URI.
* guix/download.scm (url-fetch): Include (guix base64) module on the build-side. * guix/build/download.scm (http-fetch): Add "Authorization" header when userinfo is present in the URI.
Diffstat (limited to 'guix/download.scm')
-rw-r--r--guix/download.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/download.scm b/guix/download.scm
index 9b238dcbdf..c3f34f5520 100644
--- a/guix/download.scm
+++ b/guix/download.scm
@@ -328,7 +328,8 @@ in the store."
#:modules '((guix build download)
(guix build utils)
(guix ftp-client)
- (guix base32))
+ (guix base32)
+ (guix base64))
;; Use environment variables and a fixed script
;; name so there's only one script in store for