fixed plugin assembly downloads as well as debug/release detection with nuget assemblies

This commit is contained in:
LukePulverenti
2013-02-25 00:17:59 -05:00
parent b075e0a5b9
commit 364fbb9e0c
8 changed files with 90 additions and 12 deletions

View File

@@ -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;