( )⚙ D3248 hgweb: put response headers back into str for Python 3

This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: put response headers back into str for Python 3
ClosedPublic

Authored by durin42 on Apr 11 2018, 4:10 PM.

Details

Summary

This fixes a lot of hanging tests on Python 3, because
"Content-Length" was getting sent as "b'Content-Length'" (yes, really)
and then clients would expect a close-is-end body instead of counting
off a certain number of bytes.

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

durin42 created this revision.Apr 11 2018, 4:10 PM
indygreg accepted this revision.Apr 12 2018, 11:18 AM
indygreg added a subscriber: indygreg.

A low-level WSGI API that literally puts data on the wire uses Unicode. Because Python 3. Sadness.

This revision is now accepted and ready to land.Apr 12 2018, 11:18 AM
This revision was automatically updated to reflect the committed changes.