[Modify] Polish it

This commit is contained in:
sta 2021-01-07 21:15:47 +09:00
parent 18f8fd00e7
commit 4fe77c4330

View File

@ -815,10 +815,12 @@ namespace WebSocketSharp.Net
foreach (var elm in contentType.SplitHeaderValue (';')) {
var part = elm.Trim ();
if (part.IndexOf (name, compType) != 0)
continue;
var val = part.GetValue ('=', true);
if (val == null || val.Length == 0)
return null;