From c8e03e34b27a8449d8e1bfe0e3801d6a67ae2c49 Mon Sep 17 00:00:00 2001 From: Boris Serdyuk Date: Wed, 19 Feb 2014 15:14:14 +0400 Subject: fix($http): do not add trailing question Closes #6342 --- test/ng/httpSpec.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ng') diff --git a/test/ng/httpSpec.js b/test/ng/httpSpec.js index d446a80c..192fde5c 100644 --- a/test/ng/httpSpec.js +++ b/test/ng/httpSpec.js @@ -456,6 +456,11 @@ describe('$http', function() { $httpBackend.expect('GET', '/Path?!do%26h=g%3Da+h&:bar=$baz@1').respond(''); $http({url: '/Path', params: {':bar': '$baz@1', '!do&h': 'g=a h'}, method: 'GET'}); }); + + it('should not add question mark when params is empty', function() { + $httpBackend.expect('GET', '/url').respond(''); + $http({url: '/url', params: {}, method: 'GET'}); + }) }); -- cgit v1.2.3