mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
limit access to response stream
This commit is contained in:
@@ -18,15 +18,7 @@ namespace ServiceStack.Host
|
||||
serializer(response, responseStream);
|
||||
}
|
||||
|
||||
public Action<object, IResponse> GetResponseSerializer(string contentType)
|
||||
{
|
||||
var serializer = GetStreamSerializer(contentType);
|
||||
if (serializer == null) return null;
|
||||
|
||||
return (dto, httpRes) => serializer(dto, httpRes.OutputStream);
|
||||
}
|
||||
|
||||
public Action<object, Stream> GetStreamSerializer(string contentType)
|
||||
private Action<object, Stream> GetStreamSerializer(string contentType)
|
||||
{
|
||||
switch (GetRealContentType(contentType))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user