From 58ef32308f45141c8f7f7cc32a6156cd328ba692 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 13 Jun 2012 15:37:52 -0700 Subject: fix($location): fix URL interception in hash-bang mode Closes #1051 --- src/ng/httpBackend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng/httpBackend.js') 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; -- cgit v1.2.3