Allow to download zip-attachments

Fixes issue #784.
This commit is contained in:
csware
2015-04-27 18:58:09 +02:00
parent 6854825016
commit c710c46676
+2 -2
View File
@@ -76,8 +76,8 @@ namespace Octokit.Internal
{
contentType = GetContentMediaType(responseMessage.Content);
// We added support for downloading images. Let's constrain this appropriately.
if (contentType == null || !contentType.StartsWith("image/"))
// We added support for downloading images and zip-files. Let's constrain this appropriately.
if (contentType == null || (!contentType.StartsWith("image/") && !contentType.StartsWith("application/")))
{
responseBody = await responseMessage.Content.ReadAsStringAsync().ConfigureAwait(false);
}