* Resolves the raw $http promise.
(response, status, headers, statusText)
| 8484 | * Resolves the raw $http promise. |
| 8485 | */ |
| 8486 | function resolvePromise(response, status, headers, statusText) { |
| 8487 | // normalize internal statuses to 0 |
| 8488 | status = Math.max(status, 0); |
| 8489 | |
| 8490 | (isSuccess(status) ? deferred.resolve : deferred.reject)({ |
| 8491 | data: response, |
| 8492 | status: status, |
| 8493 | headers: headersGetter(headers), |
| 8494 | config: config, |
| 8495 | statusText : statusText |
| 8496 | }); |
| 8497 | } |
| 8498 | |
| 8499 | |
| 8500 | function removePendingReq() { |
no test coverage detected