diff options
Diffstat (limited to 'src/ng/httpBackend.js')
| -rw-r--r-- | src/ng/httpBackend.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ng/httpBackend.js b/src/ng/httpBackend.js index 3e7406b0..55ea5607 100644 --- a/src/ng/httpBackend.js +++ b/src/ng/httpBackend.js @@ -102,8 +102,7 @@ function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument, } function completeRequest(callback, status, response, headersString) { - // URL_MATCH is defined in src/service/location.js - var protocol = (url.match(SERVER_MATCH) || ['', locationProtocol])[1]; + var protocol = locationProtocol || urlResolve(url).protocol; // cancel timeout and subsequent timeout promise resolution timeoutId && $browserDefer.cancel(timeoutId); |
