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

Add ability to access github Release Asset API. #525

Merged
merged 10 commits into from
Nov 27, 2017
Prev Previous commit
Next Next commit
Fix non-text files failing to upload in python3
  • Loading branch information
ankona authored and Christopher McBride committed May 17, 2017
commit d01da1df241f3e10be5cf0de4a3fc4f517ce6d99
2 changes: 1 addition & 1 deletion github/Requester.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def encode(local_path):
else:
guessed_type = mimetypes.guess_type(input)
mime_type = guessed_type[0] if guessed_type[0] is not None else "application/octet-stream"
f = open(local_path)
f = open(local_path, 'rb')
return mime_type, f

return self.__requestEncode(None, verb, url, parameters, headers, input, encode)
Expand Down