mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-30 10:35:22 +00:00
Remove SetContentLength and company
This commit is contained in:
1 parent
4e229ad86b
commit
f1c93ae618
11 files changed
+8
-53
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user