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

Already on GitHub? Sign in to your account

set Content-Type. #108

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
4 participants
Contributor

mattn commented Jun 29, 2012

If does not set content-type, it seems that can't post %. I got why this get fail from github support.

zhuangya commented Jul 9, 2012

+1 affected.

and a test case here:

 curl -i https://api.github.com/gists -H "Content-Type:application/json;Authorization: bearer TOKEN" -d ' { "description": "the description for this gist", "public": false, "files": { "file1.txt": { "content": "%" } } }'

+1

I can't create a gist from this file.

$ gist secrets.erb
Creating gist failed: 500 Internal Server Error

@mislav hey, check this issue please.

zhuangya commented Aug 7, 2012

cool!!
在 2012-8-7,下午10:54,☈king notifications@github.com 写道:

https://github.com/ConradIrwin/jist does this. See ConradIrwin/jist@75a5731


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment