Page MenuHomePhabricator

Fix an issue with passing HTTP headers through in proxied cluster requests
ClosedPublic

Authored by epriestley on Apr 8 2016, 5:55 PM.
Tags
None
Referenced Files
F15487812: D15660.diff
Thu, Apr 10, 5:03 PM
F15479046: D15660.diff
Tue, Apr 8, 5:03 AM
F15417730: D15660.id37740.diff
Thu, Mar 20, 6:00 PM
F15390126: D15660.id37741.diff
Sat, Mar 15, 5:56 AM
F15386970: D15660.id.diff
Sat, Mar 15, 1:35 AM
F15339007: D15660.diff
Mar 9 2025, 1:59 PM
Unknown Object (File)
Feb 16 2025, 6:37 AM
Unknown Object (File)
Feb 12 2025, 7:57 AM
Subscribers
None

Details

Summary

I think this fixes the Mercurial + HTTP cluster issue. PHP adds HTTP_ but we were not stripping it, so we would convert an X-Whatever-Zebra header into an Http-X-Whatever-Zebra header.

I don't think this behavior has changed? So maybe it just never worked? Git is more popular than Mercurial and SSH is easier to configure than HTTP, so it's plausible. I'll keep a careful eye on this when it deploys.

Test Plan
  • Set up local service-based Mercurial repository.
  • Tried to clone, got similar error to cluster.
  • Applied patch, clean clone.

Diff Detail

Repository
rP Phabricator
Branch
fheader
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 11602
Build 14504: Run Core Tests
Build 14503: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Fix an issue with passing HTTP headers through in proxied cluster requests.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 8 2016, 6:03 PM
This revision was automatically updated to reflect the committed changes.