[Modify] Polish it

This commit is contained in:
sta 2017-12-10 17:45:51 +09:00
parent 9f08875376
commit ed9bcaff6b

View File

@ -754,7 +754,8 @@ namespace WebSocketSharp
}
internal static IEnumerable<string> SplitHeaderValue (
this string value, params char[] separators)
this string value, params char[] separators
)
{
var len = value.Length;
var seps = new string (separators);
@ -778,8 +779,8 @@ namespace WebSocketSharp
else if (seps.Contains (c)) {
if (!quoted) {
yield return buff.ToString ();
buff.Length = 0;
buff.Length = 0;
continue;
}
}
@ -789,7 +790,6 @@ namespace WebSocketSharp
buff.Append (c);
}
if (buff.Length > 0)
yield return buff.ToString ();
}