Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to download zip-attachments #792

Merged
merged 1 commit into from
Apr 30, 2015
Merged

Allow to download zip-attachments #792

merged 1 commit into from
Apr 30, 2015

Conversation

csware
Copy link
Contributor

@csware csware commented Apr 27, 2015

Fixes issue #784.

@shiftkey
Copy link
Member

Thanks!

shiftkey added a commit that referenced this pull request Apr 30, 2015
@shiftkey shiftkey merged commit 3657d9a into octokit:master Apr 30, 2015
// 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/")))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads-up - this change also traps application/json output which breaks serialization (I should have caught this). I've updated it for the latest release to be more strict: https://github.com/octokit/octokit.net/blob/master/Octokit/Http/HttpClientAdapter.cs#L86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants