[Modify] Polish it
This commit is contained in:
parent
616b1461c1
commit
1459769d2f
@ -998,10 +998,14 @@ namespace WebSocketSharp.Net
|
|||||||
internal void InternalSet (string name, string value, bool response)
|
internal void InternalSet (string name, string value, bool response)
|
||||||
{
|
{
|
||||||
value = checkValue (value);
|
value = checkValue (value);
|
||||||
if (IsMultiValue (name, response))
|
|
||||||
|
if (IsMultiValue (name, response)) {
|
||||||
base.Add (name, value);
|
base.Add (name, value);
|
||||||
else
|
|
||||||
base.Set (name, value);
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
base.Set (name, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static bool IsMultiValue (string headerName, bool response)
|
internal static bool IsMultiValue (string headerName, bool response)
|
||||||
|
Loading…
Reference in New Issue
Block a user