class Async::HTTP::URLEndpoint

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
	case self.hostname
	when LOCALHOST
		OpenSSL::SSL::VERIFY_NONE
	else
		OpenSSL::SSL::VERIFY_PEER
	end
end