dispose content stream with StaticRemoteStreamWriter
This commit is contained in:
parent
792e4c4f1b
commit
a5b4ae8b39
|
@ -39,8 +39,11 @@ namespace MediaBrowser.Api.Playback
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="responseStream">The response stream.</param>
|
/// <param name="responseStream">The response stream.</param>
|
||||||
public void WriteTo(Stream responseStream)
|
public void WriteTo(Stream responseStream)
|
||||||
|
{
|
||||||
|
using (_response)
|
||||||
{
|
{
|
||||||
_response.Content.CopyTo(responseStream, 819200);
|
_response.Content.CopyTo(responseStream, 819200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user