From ac5559b15da2e6f124828a9c1bc868aed163c736 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 22 Jan 2019 21:13:28 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Net/HttpUtility.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpUtility.cs b/websocket-sharp/Net/HttpUtility.cs index cea42b89..817ef568 100644 --- a/websocket-sharp/Net/HttpUtility.cs +++ b/websocket-sharp/Net/HttpUtility.cs @@ -779,7 +779,8 @@ namespace WebSocketSharp.Net if (credentialsFinder == null) return null; - if (!response.StartsWith (scheme.ToString (), StringComparison.OrdinalIgnoreCase)) + var comparison = StringComparison.OrdinalIgnoreCase; + if (response.IndexOf (scheme.ToString (), comparison) != 0) return null; var res = AuthenticationResponse.Parse (response);