Package: apt-cacher-ng Version: 3.7.4-1+b2 Severity: normal X-Debbugs-Cc: safinas...@mail.ru
Steps to reproduce: 1. Install apt-cacher-ng in its default configuration 2. Make sure d-i.debian.org is not present in wget's HSTS database by running 'rm -f "$HOME/.wget-hsts"' 3. Run "http_proxy=http://localhost:3142/ wget http://d-i.debian.org/". You will see: %%% begin %%% root@26890f84728d:/# http_proxy=http://localhost:3142/ wget http://d-i.debian.org/ --2022-11-03 09:01:47-- http://d-i.debian.org/ Resolving localhost (localhost)... 127.0.0.1, ::1 Connecting to localhost (localhost)|127.0.0.1|:3142... connected. Proxy request sent, awaiting response... 400 Bad Request 2022-11-03 09:01:47 ERROR 400: Bad Request. %%% end %%% Here is full steps to reproduce: https://builds.sr.ht/~safinaskar/job/874839 . Click "view manifest ยป" to view (commented) script. -- Package-specific info: -- System Information: Debian Release: bookworm/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-0.deb9.17-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_WARN, TAINT_UNSIGNED_MODULE Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages apt-cacher-ng depends on: ii adduser 3.129 ii debconf [debconf-2.0] 1.5.79 ii dpkg 1.21.9+b1 ii libbz2-1.0 1.0.8-5+b1 ii libc-ares2 1.18.1-1+b2 ii libc6 2.35-3 ii libevent-2.1-7 2.1.12-stable-5+b1 ii libevent-pthreads-2.1-7 2.1.12-stable-5+b1 ii libfuse2 2.9.9-6 ii libgcc-s1 12.2.0-7 ii liblzma5 5.2.7-0.0 ii libssl3 3.0.7-1 ii libstdc++6 12.2.0-7 ii libsystemd0 251.6-1 ii libwrap0 7.6.q-31 ii sysvinit-utils [lsb-base] 3.05-6 ii zlib1g 1:1.2.11.dfsg-4.1 Versions of packages apt-cacher-ng recommends: ii ca-certificates 20211016 Versions of packages apt-cacher-ng suggests: pn avahi-daemon <none> pn doc-base <none> -- Configuration Files: /etc/apt-cacher-ng/acng.conf changed [not included] -- debconf information: apt-cacher-ng/bindaddress: keep apt-cacher-ng/proxy: keep apt-cacher-ng/port: keep apt-cacher-ng/cachedir: keep * apt-cacher-ng/tunnelenable: false apt-cacher-ng/gentargetmode: No automated setup