From 29a79857c3cb53a94007bb7887234d2fe27850b2 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 25 Mar 2020 17:31:12 +0100 Subject: 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 --- doc/examples/configure-index | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') 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 ""; // 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 ""; // Set the HTTP Referer [sic!] header to given value }; -- cgit v1.2.3