Page MenuHomePhabricator

Make Conduit "www-form-urlencoded" parsing of "true" and "false" case-insensitive
ClosedPublic

Authored by epriestley on Apr 27 2020, 8:26 PM.

Details

Summary

See PHI1710. Python encodes True as True (with an uppercase "T") when building URLs.

We currently do not accept this as a "truthy" value, but it's reasonable and unambiguous. Accept "True", "TRUE", "tRuE", etc.

Test Plan

Made a cURL conduit call with "True" and "tRuE". Before patch: failure to decoded booleans; after patch: successful interpretation of "true" variations.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable