This is an archive of the discontinued Mercurial Phabricator instance.

url: support suppressing Accept header
ClosedPublic

Authored by indygreg on Mar 13 2018, 3:11 PM.

Details

Summary

Sending this header automatically could interfere with future
testing and client behavior. Let's add a knob to disable the
behavior.

We don't have a control for User-Agent because urllib will send
it if we don't set something. I don't feel like hacking into the
bowels of urllib to figure out how to suppress that. UA shouldn't
be used for anything meaningful. So it shouldn't pose any problems
beyond non-determinism (since the header has the Mercurial version in
it).

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

indygreg created this revision.Mar 13 2018, 3:11 PM
durin42 accepted this revision.Mar 21 2018, 3:17 PM
This revision is now accepted and ready to land.Mar 21 2018, 3:17 PM
indygreg updated this revision to Diff 7193.Mar 21 2018, 6:19 PM
durin42 accepted this revision.Mar 21 2018, 6:21 PM
This revision was automatically updated to reflect the committed changes.