basti1302/traverson — pull request #21 by epikhighs (2014-12-04 22:51:59+00:00)
Title: supporting URIs that are url encoded by decoding the URI before checking...

... for curly braces

Hi,

I'm using Hapi.js (node web server) with the halacious plugin. I noticed that the hapi server would return the curly braces in the HAL _links as url encoded. This causes the conditional check in traverson's Walker.prototype.resolveUriTemplate to not work, since it's just looking for the '{' character instead of the url encoded '%7b'.

I simply am decoding the URI before checking for curly braces. I'm wondering if this should be done elsewhere.

But it works for my use case and the tests are passing.