[Modify] Add it
This commit is contained in:
parent
d4237fab1b
commit
0259555dea
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user