node-cas icon indicating copy to clipboard operation
node-cas copied to clipboard

Use 'hostname' instead of 'host', which includes port number.

Open rgould opened this issue 11 years ago • 1 comments

url.parse("http://foo.com:444/bar").hostname returns "foo.com:444", which causes validate to make an invalid call to https.

This permits using a CAS running on a different port.

rgould avatar Mar 13 '13 15:03 rgould

Hey, thanks for this. I'm a bit busy currently but I'll take a look and integrate as soon as I can.

kcbanner avatar Mar 14 '13 19:03 kcbanner