Merge pull request #1065 from cvium/closed_response

Don't set status code if response is closed
This commit is contained in:
Bond-009
2019-03-07 22:32:01 +01:00
committed by GitHub
6 changed files with 19 additions and 50 deletions

View File

@@ -101,7 +101,7 @@ namespace MediaBrowser.Model.Services
public interface IResponse
{
IRequest Request { get; }
HttpResponse OriginalResponse { get; }
int StatusCode { get; set; }
@@ -111,22 +111,10 @@ namespace MediaBrowser.Model.Services
void AddHeader(string name, string value);
string GetHeader(string name);
void Redirect(string url);
Stream OutputStream { get; }
/// <summary>
/// Gets a value indicating whether this instance is closed.
/// </summary>
bool IsClosed { get; set; }
//Add Metadata to Response
Dictionary<string, object> Items { get; }
IHeaderDictionary Headers { get; }
Task TransmitFile(string path, long offset, long count, FileShareMode fileShareMode, IFileSystem fileSystem, IStreamHelper streamHelper, CancellationToken cancellationToken);
bool SendChunked { get; set; }