[Modify] Replace it

This commit is contained in:
sta 2021-01-10 21:56:30 +09:00
parent 7e1294db0a
commit 2ef2c9a95a

View File

@ -816,7 +816,7 @@ namespace WebSocketSharp.Net
foreach (var elm in contentType.SplitHeaderValue (';')) {
var part = elm.Trim ();
if (part.IndexOf (name, compType) != 0)
if (!part.StartsWith (name, compType))
continue;
var val = part.GetValue ('=', true);