mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-23 09:50:24 +00:00
fix($httpBackend): respond 200/404 when on file protocol (fix protocol parsing)
This commit is contained in:
parent
08029c7b72
commit
f2119c7524
1 changed files with 1 additions and 1 deletions
|
|
@ -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(':', ''));
|
||||
}];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue