Skip to content

Conversation

@MichaelRFairhurst
Copy link

Use word boundaries in regexes so that a route ending in /:param will match ':param'

Writing some code with /:id instead of /:id.json, and the regex leads to the code happily POSTing to /widgets/:id for me which is a bit more than I want

@MichaelRFairhurst MichaelRFairhurst changed the title Use word boundaries instead of nonword characters for matching url segments Use word boundaries instead of nonword characters for matching url segments, and stop using method overides Oct 5, 2015
@MichaelRFairhurst
Copy link
Author

Also removed the usage of X-Http-Method-Override as not all rest backends, notably Spring, support it out of the box. It would always be possible to create your own adapter if you really need it but in the meantime this means a smaller binary, less confusing console output, and better interoperability with everything but crappy proxies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant