--- a/mercurial/httppeer.py Fri Jul 26 21:59:34 2024 -0400
+++ b/mercurial/httppeer.py Mon Jul 29 12:10:08 2024 -0400
@@ -492,6 +492,9 @@
# boolean capability. They only support headerless/uncompressed
# bundles.
types = [b""]
+
+ type = b""
+
for x in types:
if x in bundle2.bundletypes:
type = x