mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
added ssl verification
This commit is contained in:
parent
61c90b73ca
commit
de9504fef7
5 changed files with 16 additions and 0 deletions
|
@ -34,6 +34,9 @@ module EisBilling
|
|||
'Accept' => TOKEN
|
||||
}
|
||||
|
||||
http.use_ssl = true
|
||||
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
|
||||
http.post(invoice_generator_url, json_obj.to_json, headers)
|
||||
end
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@ module EisBilling
|
|||
'Accept' => TOKEN
|
||||
}
|
||||
|
||||
http.use_ssl = true
|
||||
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
|
||||
http.post(invoice_generator_url, obj_data.to_json, headers)
|
||||
end
|
||||
|
||||
|
|
|
@ -20,6 +20,9 @@ module EisBilling
|
|||
'Accept' => TOKEN
|
||||
}
|
||||
|
||||
http.use_ssl = true
|
||||
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
|
||||
http.post(invoice_generator_url, prepared_data.to_json, headers)
|
||||
end
|
||||
|
||||
|
|
|
@ -41,6 +41,9 @@ module EisBilling
|
|||
'Accept' => TOKEN
|
||||
}
|
||||
|
||||
http.use_ssl = true
|
||||
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
|
||||
http.post(invoice_generator_url, prepared_data.to_json, headers)
|
||||
end
|
||||
|
||||
|
|
|
@ -52,5 +52,9 @@ def base_request(url:, json_obj:)
|
|||
'Accept' => TOKEN
|
||||
}
|
||||
|
||||
|
||||
http.use_ssl = true
|
||||
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
|
||||
http.post(url, json_obj.to_json, headers)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue