[Modify] Polish it
This commit is contained in:
parent
84cce50b57
commit
b44feed4c7
@ -744,11 +744,8 @@ namespace WebSocketSharp.Net
|
|||||||
+ (secure ? "s" : String.Empty);
|
+ (secure ? "s" : String.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (host.IndexOf (':') == -1) {
|
if (host.IndexOf (':') == -1)
|
||||||
host = String.Format (
|
host = String.Format ("{0}:{1}", host, secure ? 443 : 80);
|
||||||
"{0}:{1}", host, schm == "http" || schm == "ws" ? 80 : 443
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
var url = String.Format ("{0}://{1}{2}", schm, host, path);
|
var url = String.Format ("{0}://{1}{2}", schm, host, path);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user