[Modify] Add it
This commit is contained in:
parent
71385d5638
commit
0e840a5df7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user