diff options
| author | Luke <luke.pulverenti@gmail.com> | 2016-10-07 11:14:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-07 11:14:43 -0400 |
| commit | 50ff08310ea55338dcdaeabc936c024f5573599a (patch) | |
| tree | e911343b68d44033ada99c756b2b22842481c344 /MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | |
| parent | a0897acd5c97bca60bfd20a72816e30e07f626f5 (diff) | |
| parent | c8d923da938f7704cd218e7a01b602195ba9c58b (diff) | |
Merge pull request #2213 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs index 04085d3c7..10d6f7493 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/HttpResultFactory.cs @@ -683,29 +683,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer } } - /// <summary> - /// Gets the error result. - /// </summary> - /// <param name="statusCode">The status code.</param> - /// <param name="errorMessage">The error message.</param> - /// <param name="responseHeaders">The response headers.</param> - /// <returns>System.Object.</returns> - public void ThrowError(int statusCode, string errorMessage, IDictionary<string, string> responseHeaders = null) - { - var error = new HttpError - { - Status = statusCode, - ErrorCode = errorMessage - }; - - if (responseHeaders != null) - { - AddResponseHeaders(error, responseHeaders); - } - - throw error; - } - public object GetAsyncStreamWriter(IAsyncStreamSource streamSource) { return new AsyncStreamWriter(streamSource); |
