|
|
|
@ -30,7 +30,8 @@ namespace Jellyfin.Server.Formatters
|
|
|
|
|
/// <returns>Write stream task.</returns>
|
|
|
|
|
public override Task WriteResponseBodyAsync(OutputFormatterWriteContext context, Encoding selectedEncoding)
|
|
|
|
|
{
|
|
|
|
|
return context.HttpContext.Response.WriteAsync(context.Object?.ToString());
|
|
|
|
|
var stringResponse = context.Object?.ToString();
|
|
|
|
|
return stringResponse == null ? Task.CompletedTask : context.HttpContext.Response.WriteAsync(stringResponse);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|