[Modify] Polish it
This commit is contained in:
parent
18f8fd00e7
commit
4fe77c4330
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user