Page MenuHomePhabricator

When proxying HTTP repository responses from repository nodes, discard content description headers
ClosedPublic

Authored by epriestley on Apr 25 2020, 2:40 PM.
Tags
None
Referenced Files
F19122224: D21167.diff
Tue, Dec 9, 11:19 PM
F18903667: D21167.diff
Nov 8 2025, 5:50 AM
F18791603: D21167.id.diff
Oct 16 2025, 4:08 PM
F18772202: D21167.diff
Oct 9 2025, 1:04 AM
F18753155: D21167.id50398.diff
Oct 4 2025, 5:38 PM
F18674204: D21167.diff
Sep 25 2025, 1:37 PM
F18636122: D21167.diff
Sep 17 2025, 3:33 AM
F18519437: D21167.diff
Sep 5 2025, 4:57 PM
Subscribers
None

Details

Summary

Ref T13517. See that task for details about the underlying issue here.

Currently, we may decode a compressed response, then retransmit it with leftover "Content-Encoding" and "Content-Length" headers. Instead, strip these headers.

Test Plan
  • In a clustered repository setup, cloned a Git repository over HTTP.
  • Before: Error while processing content unencoding: invalid stored block lengths
  • After: Clean clone.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable