Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Unable to create gists since HTTPS Switch #10

drnic opened this Issue · 12 comments

6 participants


Unable to create gists any more since github switched to https....



Any idea whats up here? I see you did a push 2 days ago, but I am stil getting errors, only know they say "error" rather then "gist created"



Sorry, all I had time to do was try a few things (and add a better error message). Not sure that's missing/wrong at the moment.


Yea, this started right after github switched to https only, so I assume the http API simply was turned down...


anybody get this working yet?


Same here. Too bad. Guess we should pester the github guys to finally provide a public API for create/fork/delete instead hacking into gists.


After some guess work I got this work:
Here's my gist.rb:



There might have been an issue, at least in my tests, with your regex. I forked your project corrected, and send a pull to you.

timkelty#1 (comment)

Thanks again for your hard work, you certainly did the heavy lifting!



Oh I'm sure there was, that was just a quick shot to get it working, thanks!


I think the regexp line should look like this:


Thanks for the hard work, Tim.



I don't think the above fix is correct, because it just short-circuits the HTTPS support that GitHub requires. GitHub's nginx server was returning a 400, because Net::HTTP.post_form was just sending a plain text HTTP request to an HTTPS port.

This commit provides support for HTTPS: roder/github-tmbundle@42881cb


Confirmed that @roder's commit fixes it. Thanks!


Ok, merged in roder's fork.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.