Skip to content

Apt-cacher-ng makes Http status line phrase mandatory but as per RFC it is optional..

Kunal Surana requested to merge kunaljsurana/apt-cacher-ng:debian/sid into debian/sid

Reference bug file in ubuntu

https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/2104110

Status Line should be as below but as optional HTTP/

Apt-cacher-ng makes Http status line phrase mandatory but as per RFC it is optional..

Status Line should be as below but as optional HTTP/

HTTP/1.0 & HTTP/1.1 → Required (e.g., "200 OK", "404 Not Found"). HTTP/2 → Optional (Clients typically ignore it). HTTP/3 → Removed (Not included at all).

We have jfrog repository where we are not getting OK as it is optional

curl -I https://abcd.test.com/ubuntu/dists/jammy-updates/InRelease HTTP/1.1 200 Date: Mon, 24 Mar 2025 08:58:07 GMT Content-Type: application/octet-stream Content-Length: 8103

Jfrog repository returning above status and apt-cacher-ng fails

We are getting below error when status line is not having OK. Err:1 http://abcd.test.com/ubuntu jammy InRelease 500 Remote or cache error [IP: 127.0.0.1 3142]

As a fix, we can remove the condition as status code serves the purpose..

Merge request reports

Loading