Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ignore_ssl_in_development.rb « initializers « config - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 501f706f2a808f7ace636b9c9bb4c1035bf56f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright (c) 2010, Diaspora Inc.  This file is
# licensed under the Affero General Public License version 3 or later.  See
# the COPYRIGHT file.

if AppConfig[:ca_file].blank? && (Rails.env == "development")
  module OpenSSL
    module SSL
      remove_const :VERIFY_PEER
    end
  end
  OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
end