diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2020-03-25 17:31:12 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2020-04-09 10:39:34 +0200 |
commit | 29a79857c3cb53a94007bb7887234d2fe27850b2 (patch) | |
tree | 67ac753d391c7277068f177d45fc109cf932734d /doc | |
parent | d3133f92205e06f1f04e39c7e74db9efb98df19f (diff) |
ubuntu: http: Add non-interactive to user agent if run by systemd
Include that apt is being run from a service in the user
agent, so traffic can be analysed for interactive vs
non-interactive use, and prioritised accordingly.
It looks like this now:
User-Agent: Debian APT-HTTP/1.3 (2.0.1) non-interactive
A previous version included the full service names, but this
raised some privacy concerns.
LP: #1825000
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/configure-index | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 7664e0760..497483ccc 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -271,6 +271,7 @@ Acquire No-Store "false"; // Prevent the cache from storing archives Dl-Limit "<INT>"; // Kb/sec maximum download rate User-Agent "Debian APT-HTTP/1.3"; + User-Agent-Non-Interactive "false"; // include non-interactive if run in systemd service (true on Ubuntu) Referer "<STRING>"; // Set the HTTP Referer [sic!] header to given value }; |