This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: fix decodevaluefromheaders to always return a bytes value
ClosedPublic

Authored by durin42 on Oct 16 2017, 9:51 AM.

Details

Summary

That's more in line with what we want, and we know it's ASCII data
since that's all HTTP technically allows in headers anyway.

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 16 2017, 9:51 AM
yuja accepted this revision.Oct 16 2017, 11:01 AM
This revision is now accepted and ready to land.Oct 16 2017, 11:01 AM
yuja added a comment.Oct 16 2017, 11:07 AM

Perhaps bytesurl()/strurl() should be renamed to e.g. asciibytes()/asciistr()
since we've started using them everywhere non-ascii character must be rejected.

This revision was automatically updated to reflect the committed changes.