fix file permissions, fixes #17919 in dojo
Added getTarget for handling of trailing slashes in target URL
Fixes issue #16691
- Corrected spaces around braces.
- Removed handling of options.
- Removed `allowNoTrailingSlash` parameter. Always use `getTarget`
Replaced `match` with `charAt`
Adds support for non-trailing slashes on JsonRest target, refs pull
request #14, fixes #16691