mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 19:00:47 +00:00
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user