class Async::HTTP::Endpoint

def ssl_verify_mode

We don't try to validate peer certificates when talking to localhost because they would always be self-signed.
def ssl_verify_mode
	if self.localhost?
		OpenSSL::SSL::VERIFY_NONE
	else
		OpenSSL::SSL::VERIFY_PEER
	end
end