[Modify] Polish it

master
sta 5 years ago
parent 6295f62349
commit c6e1c936b2

@ -711,6 +711,7 @@ namespace WebSocketSharp.Net
}
else if (requestUri.MaybeUri ()) {
Uri uri;
if (!Uri.TryCreate (requestUri, UriKind.Absolute, out uri))
return null;
@ -729,6 +730,7 @@ namespace WebSocketSharp.Net
}
else {
// As the authority form.
host = requestUri;
}
@ -742,8 +744,8 @@ namespace WebSocketSharp.Net
host = String.Format ("{0}:{1}", host, secure ? 443 : 80);
var url = String.Format ("{0}://{1}{2}", schm, host, path);
Uri ret;
return Uri.TryCreate (url, UriKind.Absolute, out ret) ? ret : null;
}

Loading…
Cancel
Save