diff options
Diffstat (limited to 'src/ng/httpBackend.js')
| -rw-r--r-- | src/ng/httpBackend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/httpBackend.js b/src/ng/httpBackend.js index 91ebe03d..a3f6cdc0 100644 --- a/src/ng/httpBackend.js +++ b/src/ng/httpBackend.js @@ -117,7 +117,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(URL_MATCH) || ['', locationProtocol])[1]; + var protocol = (url.match(SERVER_MATCH) || ['', locationProtocol])[1]; // fix status code for file protocol (it's always 0) status = (protocol == 'file') ? (response ? 200 : 404) : status; |
