diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index f94981be..70f2d7fd 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -503,6 +503,11 @@ namespace WebSocketSharp return idx > 0 ? nameAndValue.Substring (0, idx).Trim () : null; } + internal static string GetUTF8DecodedString (this byte[] bytes) + { + return Encoding.UTF8.GetString (bytes); + } + /// /// Gets the value from the specified string that contains a pair of /// name and value separated by a character.