Page MenuHomePhabricator

hgweb: set sent_headers attr as early as practical
ClosedPublic

Authored by durin42 on Oct 15 2017, 12:57 AM.

Details

Summary

While doing Python 3 porting work, I've seen exceptions happen in
parts of hgweb we normally assume are robust. It won't hurt anything
to set this attribute significantly earlier, so let's do so and save
confusing during the porting process.

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.Oct 15 2017, 12:57 AM
yuja accepted this revision.Oct 15 2017, 9:19 AM
This revision is now accepted and ready to land.Oct 15 2017, 9:19 AM
This revision was automatically updated to reflect the committed changes.