Skip to content

Commit

Permalink
Merge pull request #792 from csware/handle-application-as-binary
Browse files Browse the repository at this point in the history
Allow to download zip-attachments
  • Loading branch information
shiftkey committed Apr 30, 2015
2 parents 6854825 + c710c46 commit 3657d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Octokit/Http/HttpClientAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ protected async virtual Task<IResponse> BuildResponse(HttpResponseMessage respon
{
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);
}
Expand Down

0 comments on commit 3657d9a

Please sign in to comment.