[Modify] Add it

This commit is contained in:
sta 2019-11-28 20:37:46 +09:00
parent 7891e1fa6d
commit 2636a9fd4f

View File

@ -629,6 +629,17 @@ namespace WebSocketSharp.Net
_context.Connection.Close (force);
}
private static string createContentType (string value, Encoding encoding)
{
if (value.IndexOf ("charset=", StringComparison.Ordinal) > -1)
return value;
if (encoding == null)
return value;
return String.Format ("{0}; charset={1}", value, encoding.WebName);
}
private IEnumerable<Cookie> findCookie (Cookie cookie)
{
if (_cookies == null || _cookies.Count == 0)