[Modify] Add it

This commit is contained in:
sta 2020-01-09 20:09:23 +09:00
parent 897a99e86d
commit 82265ca289

View File

@ -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
#region Public Methods