[Modify] Polish it
This commit is contained in:
parent
9f08875376
commit
ed9bcaff6b
@ -754,7 +754,8 @@ namespace WebSocketSharp
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal static IEnumerable<string> SplitHeaderValue (
|
internal static IEnumerable<string> SplitHeaderValue (
|
||||||
this string value, params char[] separators)
|
this string value, params char[] separators
|
||||||
|
)
|
||||||
{
|
{
|
||||||
var len = value.Length;
|
var len = value.Length;
|
||||||
var seps = new string (separators);
|
var seps = new string (separators);
|
||||||
@ -778,8 +779,8 @@ namespace WebSocketSharp
|
|||||||
else if (seps.Contains (c)) {
|
else if (seps.Contains (c)) {
|
||||||
if (!quoted) {
|
if (!quoted) {
|
||||||
yield return buff.ToString ();
|
yield return buff.ToString ();
|
||||||
buff.Length = 0;
|
|
||||||
|
|
||||||
|
buff.Length = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -789,7 +790,6 @@ namespace WebSocketSharp
|
|||||||
buff.Append (c);
|
buff.Append (c);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buff.Length > 0)
|
|
||||||
yield return buff.ToString ();
|
yield return buff.ToString ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user