diff options
| author | Misko Hevery | 2012-06-13 15:37:52 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2013-04-15 12:05:27 -0700 | 
| commit | 58ef32308f45141c8f7f7cc32a6156cd328ba692 (patch) | |
| tree | eb0e5178e1e492aec2db6593594fb9cba8435976 /src/ng/httpBackend.js | |
| parent | 59bfe8e5a9edf7ba000d258b9ac1ef8355c9aca7 (diff) | |
| download | angular.js-58ef32308f45141c8f7f7cc32a6156cd328ba692.tar.bz2 | |
fix($location): fix URL interception in hash-bang mode
Closes #1051
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; | 
