Handle dots in resource ids correctly #27

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@Swatinem

Previously a GET /resource/foo.bar.json parsed this into id=foo and format=bar.json
This is fixed now and results in id=foo.bar and format=json

@tj
Member
tj commented Jul 27, 2011

we should fix this in the express router, ".:format" is special-cased in there so the same tweak should apply

@Swatinem

Fixed in express.

@Swatinem Swatinem closed this Sep 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment