(response)
| 12462 | } |
| 12463 | |
| 12464 | function transformResponse(response) { |
| 12465 | // make a copy since the response must be cacheable |
| 12466 | var resp = extend({}, response); |
| 12467 | resp.data = transformData(response.data, response.headers, response.status, |
| 12468 | config.transformResponse); |
| 12469 | return (isSuccess(response.status)) |
| 12470 | ? resp |
| 12471 | : $q.reject(resp); |
| 12472 | } |
| 12473 | } |
| 12474 | |
| 12475 | $http.pendingRequests = []; |
nothing calls this directly
no test coverage detected