HomePhorge

When proxying HTTP repository responses from repository nodes, discard content…

Description

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

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.

Maniphest Tasks: T13517

Differential Revision: https://secure.phabricator.com/D21167

Details

Provenance
epriestleyAuthored on Apr 25 2020, 7:30 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP6f7147376f87: Parse "multipart/form-data" bodies even if "enable_post_data_reading" is on
Branches
Unknown
Tags
Unknown

Event Timeline