From 0b3cc3a369f5e60c8b540c1842eb2ddd924e4af6 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 26 Jan 2019 22:15:06 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index 2965db02..6d0353a2 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -697,16 +697,10 @@ namespace WebSocketSharp.Net string requestUri, string host, bool websocketRequest, bool secure ) { - if (requestUri == null) + if (requestUri == null || requestUri.Length == 0) return null; - if (host == null) - return null; - - if (requestUri.Length == 0) - return null; - - if (host.Length == 0) + if (host == null || host.Length == 0) return null; string schm = null;