guzzle / uri-template

MIT License
143 stars 8 forks source link

0 should be allowed as an expanded value #21

Closed AntoineWattier closed 1 year ago

AntoineWattier commented 1 year ago

This fixes an issue where 0 value is being ignored when trying to expand a simple template such as http://www.test.com{;zero}

Previously 'http://www.test.com{;zero} with zero=0 would expand to http://www.test.com;zero After the proposed change it would expand to http://www.test.com;zero=0

GrahamCampbell commented 1 year ago

Nice spot. Thanks.

GrahamCampbell commented 1 year ago

v1.0.2 has been released, with this fix.