This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file treeCollapse file tree 4 files changed+186
-206
lines changedFilter options
+186
-206
lines changed Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ function isSameDomain(requestUrl, locationUrl) {
52
52
relativeProtocol: match[2] === undefined || match[2] === ''
53
53
};
54
54
55
-
match = URL_MATCH.exec(locationUrl);
55
+
match = SERVER_MATCH.exec(locationUrl);
56
56
var domain2 = {
57
57
protocol: match[1],
58
58
host: match[3],
Original file line number Diff line number Diff line change
@@ -117,7 +117,7 @@ function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument,
117
117
118
118
function completeRequest(callback, status, response, headersString) {
119
119
// URL_MATCH is defined in src/service/location.js
120
-
var protocol = (url.match(URL_MATCH) || ['', locationProtocol])[1];
120
+
var protocol = (url.match(SERVER_MATCH) || ['', locationProtocol])[1];
121
121
122
122
// fix status code for file protocol (it's always 0)
123
123
status = (protocol == 'file') ? (response ? 200 : 404) : status;
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4