mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-12 15:53:10 +00:00
Fix node-based url request
This commit is contained in:
parent
40490dc7f3
commit
81e8f9c2e2
1 changed files with 3 additions and 1 deletions
|
|
@ -16,7 +16,7 @@
|
|||
var oURL = URL.parse(url),
|
||||
req = HTTP.request({
|
||||
hostname: oURL.hostname,
|
||||
port: oURL.port,
|
||||
port: oURL.port || 80,
|
||||
path: oURL.pathname,
|
||||
method: 'GET'
|
||||
}, function(response){
|
||||
|
|
@ -42,6 +42,8 @@
|
|||
fabric.log(err.message);
|
||||
}
|
||||
});
|
||||
|
||||
req.end();
|
||||
}
|
||||
|
||||
/** @private */
|
||||
|
|
|
|||
Loading…
Reference in a new issue