We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f803aa commit 11bfdeaCopy full SHA for 11bfdea
index.js
@@ -14,7 +14,7 @@ http.request = function (params, cb) {
14
if (!params.host && params.hostname) {
15
params.host = params.hostname;
16
}
17
-
+
18
if (!params.scheme) params.scheme = window.location.protocol.split(':')[0];
19
if (!params.host) {
20
params.host = window.location.hostname || window.location.host;
@@ -26,7 +26,7 @@ http.request = function (params, cb) {
26
params.host = params.host.split(':')[0];
27
28
if (!params.port) params.port = params.scheme == 'https' ? 443 : 80;
29
30
var req = new Request(new xhrHttp, params);
31
if (cb) req.on('response', cb);
32
return req;
0 commit comments