[Modify] Add it
This commit is contained in:
@@ -751,6 +751,22 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static bool TryGetEncoding (
|
||||||
|
string contentType, out Encoding result
|
||||||
|
)
|
||||||
|
{
|
||||||
|
result = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
result = GetEncoding (contentType);
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Public Methods
|
#region Public Methods
|
||||||
|
|||||||
Reference in New Issue
Block a user