Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Not following the RFC on + and # template placeholders #7
I'm contributing (as part of Shadowcat Systems), to work on the Paws API (https://github.com/pplu/aws-sdk-perl). Paws uses URI::Template, in a way specified with the RFC - it passes in pre-uri-encoded values for placeholders that are marked with a leading +, which are expected not to be encoded again - as stated here https://tools.ietf.org/html/rfc6570#section-3.2.1
It appears from the code that URI::Template treats +XX, #XX and XX all the same, and thus the values end up double-encoded.
Any thoughts? I will start looking into a patch.
referenced this issue
Jul 9, 2018
Here's my branch on uritemplates-test to add some, which I copied into t/cases to verify: https://github.com/castaway/uritemplate-test/tree/reserved-pct-encoded