[Modify] Add it

This commit is contained in:
sta 2018-01-03 16:42:38 +09:00
parent 71385d5638
commit 0e840a5df7

View File

@ -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
#region Public Methods