-
-
Save shibafu528/d879874c8d5bef61d32832c214f3b8a6 to your computer and use it in GitHub Desktop.
mikutterでのhttpclientのcert古すぎ回避
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
Plugin.create(:trustme) do | |
end | |
module Plugin::Trustme | |
def initialize(*args, **kwargs, &block) | |
super | |
ssl_config.set_default_paths | |
end | |
end | |
HTTPClient.prepend(Plugin::Trustme) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -o ~/.mikutter/plugin/trustme.rb https://gist.githubusercontent.com/shibafu528/d879874c8d5bef61d32832c214f3b8a6/raw/5a9e97311533cd848b3a63def8ab4c6ec300ffe9/trustme.rb