aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ng/http.js5
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;
}