Allow omitting trailiing slash when last segment is an optional parameter
Merge pull request #936 from spumko/issue/935

Allow omitting trailing slash when last segment is an optional parameter