This is an archive of the discontinued Mercurial Phabricator instance.

py3: convert HTTP request headers to str
ClosedPublic

Authored by indygreg on Oct 2 2018, 2:17 AM.

Details

Summary

The low-level request object ideally takes system strings for
HTTP request headers and values. If we send in bytes, it works. But
a duplicate header check fails and various tests emit duplicate
user-agent headers.

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.Oct 2 2018, 2:17 AM
This revision was automatically updated to reflect the committed changes.