2 ms·
BUG! (I think) using '#' as a 'ch' value pads the string with spaces: $ curl 'https://api.left-pad.io/?str=wat&len=10&ch=#' https://api.left-pad.io/?str=wat&le
by ChemicalWarfare 11y ago
BUG! (I think)
using '#' as a 'ch' value pads the string with spaces:
$ curl 'https://api.left-pad.io/?str=wat&len=10&ch=#' https://api.left-pad.io/?str=wat&len=10&ch=#'
{"str":" wat"}
Please provide github link to fork/submit pr :)
- pfooti 11y agoPretty sure you have to urlencode hashes, don't you? What happens if you do ch=%23?
- ChemicalWarfare 11y agogood point :) API needs to add a POST support with explicit description of rationale being the need to url encode characters when using a GET. Also needs HATEOAS.