diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 6829c347..857ec40a 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -464,10 +464,7 @@ namespace WebSocketSharp /// internal static string GetValue (this string nameAndValue, char separator) { - var idx = nameAndValue.IndexOf (separator); - return idx > -1 && idx < nameAndValue.Length - 1 - ? nameAndValue.Substring (idx + 1).Trim () - : null; + return nameAndValue.GetValue (separator, false); } internal static string GetValue (