We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da700a9 commit 138c728Copy full SHA for 138c728
src/index.js
@@ -450,7 +450,7 @@
450
var _this = this;
451
var start = new Date();
452
config = deepMixIn(config, _this.defaults.httpConfig);
453
- if (_this.defaults.forceTrailingSlash && config.url[config.url.length] !== '/') {
+ if (_this.defaults.forceTrailingSlash && config.url[config.url.length-1] !== '/') {
454
config.url += '/';
455
}
456
config.method = config.method.toUpperCase();
0 commit comments