[Modify] Add it
This commit is contained in:
parent
63299a641e
commit
e03538bdc8
@ -1022,6 +1022,15 @@ namespace WebSocketSharp
|
|||||||
: value.Substring (start + 1, len).Replace ("\\\"", "\"");
|
: value.Substring (start + 1, len).Replace ("\\\"", "\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static bool Upgrades (
|
||||||
|
this NameValueCollection headers, string protocol
|
||||||
|
)
|
||||||
|
{
|
||||||
|
var comparison = StringComparison.OrdinalIgnoreCase;
|
||||||
|
return headers.Contains ("Upgrade", protocol, comparison)
|
||||||
|
&& headers.Contains ("Connection", "Upgrade", comparison);
|
||||||
|
}
|
||||||
|
|
||||||
internal static string UTF8Decode (this byte[] bytes)
|
internal static string UTF8Decode (this byte[] bytes)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user