diff options
| author | Boris Serdyuk | 2014-02-19 15:14:14 +0400 | 
|---|---|---|
| committer | Igor Minar | 2014-02-21 14:51:10 -0800 | 
| commit | c8e03e34b27a8449d8e1bfe0e3801d6a67ae2c49 (patch) | |
| tree | c480b17472ecb25edb512bba9d4d3ddb6ec2a181 /src/ng/http.js | |
| parent | 267b217376ed466e9f260ecfdfa15a8227c103ff (diff) | |
| download | angular.js-c8e03e34b27a8449d8e1bfe0e3801d6a67ae2c49.tar.bz2 | |
fix($http): do not add trailing question
Closes #6342
Diffstat (limited to 'src/ng/http.js')
| -rw-r--r-- | src/ng/http.js | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/ng/http.js b/src/ng/http.js index defe43dc..63948196 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -1026,7 +1026,10 @@ function $HttpProvider() {                           encodeUriQuery(v));              });            }); -          return url + ((url.indexOf('?') == -1) ? '?' : '&') + parts.join('&'); +          if(parts.length > 0) { +            url += ((url.indexOf('?') == -1) ? '?' : '&') + parts.join('&'); +          } +          return url;          } | 
