Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f2119c7

Browse files
committed
fix($httpBackend): respond 200/404 when on file protocol (fix protocol parsing)
1 parent 08029c7 commit f2119c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service/httpBackend.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var XHR = window.XMLHttpRequest || function() {
1818
function $HttpBackendProvider() {
1919
this.$get = ['$browser', '$window', '$document', function($browser, $window, $document) {
2020
return createHttpBackend($browser, XHR, $browser.defer, $window.angular.callbacks,
21-
$document[0].body, $window.location.href.replace(':', ''));
21+
$document[0].body, $window.location.protocol.replace(':', ''));
2222
}];
2323
}
2424

0 commit comments

Comments
 (0)