mirror of
https://github.com/NixOS/nix
synced 2025-07-02 05:11:47 +02:00
Set the User-Agent header to "Nix/<version>"
This commit is contained in:
parent
b74d92755d
commit
d287b62b64
2 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,7 @@ sub addRequest {
|
|||
$curl->setopt(CURLOPT_WRITEDATA, \$requests{$curlId}->{content});
|
||||
$curl->setopt(CURLOPT_FOLLOWLOCATION, 1);
|
||||
$curl->setopt(CURLOPT_CAINFO, $caBundle) if defined $caBundle;
|
||||
$curl->setopt(CURLOPT_USERAGENT, "Nix/$Nix::Config::version");
|
||||
$curl->setopt(CURLOPT_NOBODY, 1) if $head;
|
||||
|
||||
if ($activeRequests >= $maxParallelRequests) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue