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

set Content-Type. #108

Closed
wants to merge 1 commit into from
Closed

set Content-Type. #108

wants to merge 1 commit into from

Conversation

mattn
Copy link
Contributor

@mattn 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
Copy link

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": "%" } } }'

@simeonwillbanks
Copy link

+1

I can't create a gist from this file.

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

@zhuangya
Copy link

@mislav hey, check this issue please.

@rking
Copy link
Contributor

rking commented Aug 7, 2012

@zhuangya
Copy link

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants