fixed to obtain the client's name, if the caps node contains https

node1 = "http://host.net/blablabla"
node2 = "https://www.host.net/blablabla"

behavior before:
name1="host.net"
name2="https:"

behavior after:
name1="host.net"
name2="host.net"