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

Fixes for Downloading ReleaseAsset zip File #943

Merged
merged 2 commits into from
Oct 29, 2015

Conversation

naveensrinivasan
Copy link

This commit addresses the http response which wasn't handling response content-type application/octet-stream for binary items.

Fixes #854

This commit  addressed the `BuildResponse`  wasn't handling
response `content-type` `application/octet-stream` for binary items.
// Let's constrain this appropriately.
var binaryContentTypes = new[] {"application/zip"
,"application/x-gzip",
"application/octet-stream"};
Copy link
Author

Choose a reason for hiding this comment

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

I don't know if the response content type could be anything else other than application/octet-stream. From the test's that I have done with API for zip and txt the response content type has only been application/octet-stream. Do we need the other types?

Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't worry about other types here...

Fixed the spacing of comma and aligned the arguments.
@shiftkey
Copy link
Member

I think this is good to go. @haacked?

haacked added a commit that referenced this pull request Oct 29, 2015
Fixes for Downloading ReleaseAsset zip File
@haacked haacked merged commit 5c07408 into octokit:master Oct 29, 2015
@haacked
Copy link
Contributor

haacked commented Oct 29, 2015

Awww yeah!

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.

None yet

3 participants