fix($http): do not modify the config object passed into $http short methods
Update $http's createShortMethods and createShortMethodsWithData to extend an empty object instead of the passed-in config. Previously, since $http was extending the passed-in config, the changes to the config object persisted even after the call to $http's get/post/etc. returned. This causes unexpected behavior if that config object is reused in subsequent calls to $http. The existing test in httpSpec was not properly testing this situation. Closes: #11764
M
Max Thyen committed
f7a4b48121ed2b04af89bd2b754f500d1872360d
Parent: 9804867
Committed by Lucas Galfaso <lgalfaso@gmail.com>
on 5/18/2015, 11:57:54 AM