aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/SocketSharp/WebSocketSharpResponse.cs
diff options
context:
space:
mode:
authorClaus Vium <clausvium@gmail.com>2019-02-26 21:08:30 +0100
committerClaus Vium <clausvium@gmail.com>2019-02-26 22:11:21 +0100
commitf1c93ae618f293eae4cc384fadfd4440c4e0cf2d (patch)
tree84e730652dbc66ad420f20e7842c719452a32cd4 /Emby.Server.Implementations/SocketSharp/WebSocketSharpResponse.cs
parent4e229ad86b3a3b6024ca0c29c17e4aac5386a210 (diff)
Remove SetContentLength and company
Diffstat (limited to 'Emby.Server.Implementations/SocketSharp/WebSocketSharpResponse.cs')
-rw-r--r--Emby.Server.Implementations/SocketSharp/WebSocketSharpResponse.cs8
1 files changed, 0 insertions, 8 deletions
diff --git a/Emby.Server.Implementations/SocketSharp/WebSocketSharpResponse.cs b/Emby.Server.Implementations/SocketSharp/WebSocketSharpResponse.cs
index c68b95984..f9ecb52a5 100644
--- a/Emby.Server.Implementations/SocketSharp/WebSocketSharpResponse.cs
+++ b/Emby.Server.Implementations/SocketSharp/WebSocketSharpResponse.cs
@@ -143,14 +143,6 @@ namespace Emby.Server.Implementations.SocketSharp
private set;
}
- 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
- //_response.ContentLength64 = contentLength;
- }
-
public void SetCookie(Cookie cookie)
{
var cookieStr = AsHeaderValue(cookie);