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
refs #17687, set ContentType to false when FormData is used
refs #17687, change test to not pass false content-type header
refs #17687, change test to not pass false content-type header