(callback, status, response, headersString)
| 9321 | |
| 9322 | |
| 9323 | function completeRequest(callback, status, response, headersString) { |
| 9324 | // URL_MATCH is defined in src/service/location.js |
| 9325 | var protocol = (url.match(URL_MATCH) || ['', locationProtocol])[1]; |
| 9326 | |
| 9327 | // fix status code for file protocol (it's always 0) |
| 9328 | status = (protocol == 'file') ? (response ? 200 : 404) : status; |
| 9329 | |
| 9330 | // normalize IE bug (http://bugs.jquery.com/ticket/1450) |
| 9331 | status = status == 1223 ? 204 : status; |
| 9332 | |
| 9333 | callback(status, response, headersString); |
| 9334 | $browser.$$completeOutstandingRequest(noop); |
| 9335 | } |
| 9336 | }; |
| 9337 | |
| 9338 | function jsonpReq(url, done) { |
no test coverage detected