fix($httpBackend): respond 200/404 when on file protocol (fix protocol parsing)

This commit is contained in:
Vojta Jina 2012-01-05 20:37:20 -08:00
parent 08029c7b72
commit f2119c7524

View file

@ -18,7 +18,7 @@ var XHR = window.XMLHttpRequest || function() {
function $HttpBackendProvider() {
this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) {
return createHttpBackend($browser, XHR, $browser.defer, $window.angular.callbacks,
$document[0].body, $window.location.href.replace(':', ''));
$document[0].body, $window.location.protocol.replace(':', ''));
}];
}