mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 16:06:16 -05:00
substitute: Send ‘User-Agent’ header.
* guix/scripts/substitute.scm (narinfo-request): Pass ‘User-Agent’ #:headers to ‘build-request’.
This commit is contained in:
parent
32ea65370e
commit
f264e838c0
1 changed files with 3 additions and 2 deletions
|
@ -520,8 +520,9 @@ (define (cache-entry cache-uri narinfo)
|
|||
(define (narinfo-request cache-url path)
|
||||
"Return an HTTP request for the narinfo of PATH at CACHE-URL."
|
||||
(let ((url (string-append cache-url "/" (store-path-hash-part path)
|
||||
".narinfo")))
|
||||
(build-request (string->uri url) #:method 'GET)))
|
||||
".narinfo"))
|
||||
(headers '((User-Agent . "GNU Guile"))))
|
||||
(build-request (string->uri url) #:method 'GET #:headers headers)))
|
||||
|
||||
(define* (http-multiple-get base-uri proc seed requests
|
||||
#:key port (verify-certificate? #t))
|
||||
|
|
Loading…
Reference in a new issue