[Modify] Polish it
This commit is contained in:
parent
e22444beae
commit
1880af98fc
@ -928,9 +928,11 @@ namespace WebSocketSharp
|
||||
|
||||
internal static CompressionMethod ToCompressionMethod (this string value)
|
||||
{
|
||||
foreach (CompressionMethod method in Enum.GetValues (typeof (CompressionMethod)))
|
||||
var methods = Enum.GetValues (typeof (CompressionMethod));
|
||||
foreach (CompressionMethod method in methods) {
|
||||
if (method.ToExtensionString () == value)
|
||||
return method;
|
||||
}
|
||||
|
||||
return CompressionMethod.None;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user