Skip to content

Commit

Permalink
Merge pull request #20 from TrustTheVote-Project/production
Browse files Browse the repository at this point in the history
Production
  • Loading branch information
amekelburg committed Oct 14, 2016
2 parents 7ba7ea5 + 488994b commit bddff8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/pa_registration_request.rb
Expand Up @@ -13,9 +13,10 @@ def self.send_request(params)
url = "/SureOVRWebAPI/api/ovr?JSONv2&sysparm_AuthKey=#{api_key}&sysparm_action=SETAPPLICATION&sysparm_Language=0"

uri = URI.parse(server)
http = Net::HTTP.new(uri.host, uri.port, read_timeout: 125)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
http.read_timeout = 125
request = Net::HTTP::Post.new(url)
request.add_field('Content-Type', 'application/json')
request.add_field('Cache-Control', 'no-cache')
Expand Down

0 comments on commit bddff8e

Please sign in to comment.