Browse Source

request remove trailling slashes

tags/0.1.5
Robin Thoni 8 years ago
parent
commit
1a6ecd1898
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/request.js

+ 2
- 0
src/request.js View File

@@ -56,6 +56,8 @@
56 56
                 }
57 57
                 var defered = $q.defer();
58 58
 
59
+                url = url.replace(/\/+$/, '');
60
+
59 61
                 var params = {
60 62
                     url: url,
61 63
                     method: method,

Loading…
Cancel
Save