Skip to content

Commit fa6c996

Browse files
committed
Merge pull request #8 from joshdrake/master
Fixed handling of 'forceTrailingSlash' option.
2 parents 1ec8528 + 509e74b commit fa6c996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dsHttpAdapterPrototype.HTTP = function (config) {
7373
var _this = this;
7474
var start = new Date();
7575
config = deepMixIn(config, _this.defaults.httpConfig);
76-
if (_this.defaults.forceTrailingSlash && config.url[config.url.length] !== '/') {
76+
if (_this.defaults.forceTrailingSlash && config.url[config.url.length - 1] !== '/') {
7777
config.url += '/';
7878
}
7979

0 commit comments

Comments
 (0)