[Modify] Add it

This commit is contained in:
sta 2019-06-30 21:07:43 +09:00
parent d4237fab1b
commit 0259555dea

View File

@ -503,6 +503,11 @@ namespace WebSocketSharp
return idx > 0 ? nameAndValue.Substring (0, idx).Trim () : null; return idx > 0 ? nameAndValue.Substring (0, idx).Trim () : null;
} }
internal static string GetUTF8DecodedString (this byte[] bytes)
{
return Encoding.UTF8.GetString (bytes);
}
/// <summary> /// <summary>
/// Gets the value from the specified string that contains a pair of /// Gets the value from the specified string that contains a pair of
/// name and value separated by a character. /// name and value separated by a character.