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
                 }
56
                 }
57
                 var defered = $q.defer();
57
                 var defered = $q.defer();
58
 
58
 
59
+                url = url.replace(/\/+$/, '');
60
+
59
                 var params = {
61
                 var params = {
60
                     url: url,
62
                     url: url,
61
                     method: method,
63
                     method: method,

Loading…
Cancel
Save