mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-24 05:38:49 +00:00
Remove SetContentLength and company
This commit is contained in:
parent
4e229ad86b
commit
f1c93ae618
11 changed files with 8 additions and 53 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue