[Modify] Add it
This commit is contained in:
parent
7891e1fa6d
commit
2636a9fd4f
@ -629,6 +629,17 @@ namespace WebSocketSharp.Net
|
|||||||
_context.Connection.Close (force);
|
_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)
|
private IEnumerable<Cookie> findCookie (Cookie cookie)
|
||||||
{
|
{
|
||||||
if (_cookies == null || _cookies.Count == 0)
|
if (_cookies == null || _cookies.Count == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user