diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-25 00:17:59 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-25 00:17:59 -0500 |
| commit | 364fbb9e0c7586afa296ddd7d739df086f4c3533 (patch) | |
| tree | 4b643b13ebdc31b95d0544c87e9fa398571c450e /MediaBrowser.Common/Net/BaseRestService.cs | |
| parent | b075e0a5b963435c67b7027f85b51ff181adc2d1 (diff) | |
fixed plugin assembly downloads as well as debug/release detection with nuget assemblies
Diffstat (limited to 'MediaBrowser.Common/Net/BaseRestService.cs')
| -rw-r--r-- | MediaBrowser.Common/Net/BaseRestService.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Common/Net/BaseRestService.cs b/MediaBrowser.Common/Net/BaseRestService.cs index 59818a932..a7e95fca2 100644 --- a/MediaBrowser.Common/Net/BaseRestService.cs +++ b/MediaBrowser.Common/Net/BaseRestService.cs @@ -241,6 +241,10 @@ namespace MediaBrowser.Common.Net { return false; } + if (contentType.StartsWith("application/", StringComparison.OrdinalIgnoreCase)) + { + return false; + } return true; } @@ -257,7 +261,10 @@ namespace MediaBrowser.Common.Net if (!compress || string.IsNullOrEmpty(RequestContext.CompressionType)) { Response.ContentType = contentType; - return await factoryFn().ConfigureAwait(false); + + var stream = await factoryFn().ConfigureAwait(false); + + return new StreamWriter(stream); } string content; |
