[Modify] Add it
This commit is contained in:
parent
897a99e86d
commit
82265ca289
@ -826,6 +826,22 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static bool isValidForContentType (string value)
|
||||||
|
{
|
||||||
|
foreach (var c in value) {
|
||||||
|
if (c < 0x20)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (c > 0x7e)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if ("()<>@:\\[]?{}".IndexOf (c) > -1)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Public Methods
|
#region Public Methods
|
||||||
|
Loading…
Reference in New Issue
Block a user