MCPcopy Create free account
hub / github.com/apache/cloudstack / completeRequest

Function completeRequest

tools/ngui/static/js/lib/angular.js:9323–9335  ·  view source on GitHub ↗
(callback, status, response, headersString)

Source from the content-addressed store, hash-verified

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) {

Callers 1

createHttpBackendFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected