mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-12 02:10:59 +00:00
Support HTTPS with different ports not just 443
We would like to make this change to support HTTPS running on different ports other than 443 since user may have 443 used for something else on their machine. Thanks, Justin
This commit is contained in:
parent
485a6733f9
commit
079248f47d
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@
|
|||
}
|
||||
|
||||
// assign request handler based on protocol
|
||||
var reqHandler = ( oURL.port === 443 ) ? HTTPS : HTTP,
|
||||
var reqHandler = (oURL.protocol.indexOf('https:') ) ? HTTPS : HTTP,
|
||||
req = reqHandler.request({
|
||||
hostname: oURL.hostname,
|
||||
port: oURL.port,
|
||||
|
|
|
|||
Loading…
Reference in a new issue