We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ec8528 + 509e74b commit fa6c996Copy full SHA for fa6c996
src/index.js
@@ -73,7 +73,7 @@ dsHttpAdapterPrototype.HTTP = function (config) {
73
var _this = this;
74
var start = new Date();
75
config = deepMixIn(config, _this.defaults.httpConfig);
76
- if (_this.defaults.forceTrailingSlash && config.url[config.url.length] !== '/') {
+ if (_this.defaults.forceTrailingSlash && config.url[config.url.length - 1] !== '/') {
77
config.url += '/';
78
}
79
0 commit comments