avoid padding content in serveGet
authorJoey Hess <joeyh@joeyh.name>
Mon, 22 Jul 2024 15:19:52 +0000 (11:19 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 22 Jul 2024 15:19:52 +0000 (11:19 -0400)
commit72d0769ca52228327973015935a3fa849d3f0d88
treed69207e835dcce1fe142e9f3bc022f7e083a5967
parent4826a3745d857e9de69ac2a56df8522f5d5cf3bd
avoid padding content in serveGet

Always truncate instead. The padding risked something not noticing the
content was bad and getting a file that was corrupted in a novel way
with the padding "X" at the end. A truncated file is better.
P2P/Http.hs
doc/todo/git-annex_proxies.mdwn