aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-02-13 16:52:53 +0100
committerBond-009 <bond.009@outlook.com>2019-02-16 00:43:56 +0100
commitebae7229c1dba82ec60555d951cefa90ff2df655 (patch)
tree506b5fb2859b829e4a408375fe9b513ca2629138 /Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs
parent3df8cda110a952ca529740f2b985c624c036a5f0 (diff)
Single line comments should start with a space
Diffstat (limited to 'Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs')
-rw-r--r--Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs b/Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs
index cabc96b23..68995a819 100644
--- a/Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs
+++ b/Jellyfin.Server/SocketSharp/WebSocketSharpResponse.cs
@@ -51,7 +51,7 @@ namespace Jellyfin.Server.SocketSharp
set => _response.ContentType = value;
}
- //public ICookies Cookies { get; set; }
+ // public ICookies Cookies { get; set; }
public void AddHeader(string name, string value)
{
@@ -114,9 +114,9 @@ namespace Jellyfin.Server.SocketSharp
public void SetContentLength(long contentLength)
{
- //you can happily set the Content-Length header in Asp.Net
- //but HttpListener will complain if you do - you have to set ContentLength64 on the response.
- //workaround: HttpListener throws "The parameter is incorrect" exceptions when we try to set the Content-Length header
+ // you can happily set the Content-Length header in Asp.Net
+ // but HttpListener will complain if you do - you have to set ContentLength64 on the response.
+ // workaround: HttpListener throws "The parameter is incorrect" exceptions when we try to set the Content-Length header
_response.ContentLength64 = contentLength;
}
@@ -147,10 +147,6 @@ namespace Jellyfin.Server.SocketSharp
{
sb.Append($";domain={cookie.Domain}");
}
- //else if (restrictAllCookiesToDomain != null)
- //{
- // sb.Append($";domain={restrictAllCookiesToDomain}");
- //}
if (cookie.Secure)
{