* Resolves the raw $http promise.
(response, status, headers)
| 9175 | * Resolves the raw $http promise. |
| 9176 | */ |
| 9177 | function resolvePromise(response, status, headers) { |
| 9178 | // normalize internal statuses to 0 |
| 9179 | status = Math.max(status, 0); |
| 9180 | |
| 9181 | (isSuccess(status) ? deferred.resolve : deferred.reject)({ |
| 9182 | data: response, |
| 9183 | status: status, |
| 9184 | headers: headersGetter(headers), |
| 9185 | config: config |
| 9186 | }); |
| 9187 | } |
| 9188 | |
| 9189 | |
| 9190 | function removePendingReq() { |
no test coverage detected