Hello, I'm not able to reproduce the issue on Bookworm with a HTTP2 localhost apache server.
There's something specific to the way "https://git.dgit.debian.org/dgit/info/refs" is setup which triggers the issue. The next step is to find a server which can be tested against, ideally finding the configuration that triggers this so we can test locally. Once we get something to reproduce, we can do a bisect to find the commit that introduces the issue and possibly get close to a safe fix. Thank you, -- Samuel Henrique <samueloph>