@@ -24,12 +24,12 @@ defmodule Checkend.Client do
2424 body = encode_json ( payload )
2525
2626 headers = [
27- { ' content-type' , ' application/json' } ,
28- { ' checkend-ingestion-key' , String . to_charlist ( config . api_key ) } ,
29- { ' user-agent' , String . to_charlist ( "checkend-elixir/#{ Checkend . version ( ) } " ) }
27+ { ~c " content-type" , ~c " application/json" } ,
28+ { ~c " checkend-ingestion-key" , String . to_charlist ( config . api_key ) } ,
29+ { ~c " user-agent" , String . to_charlist ( "checkend-elixir/#{ Checkend . version ( ) } " ) }
3030 ]
3131
32- request = { String . to_charlist ( url ) , headers , ' application/json' , body }
32+ request = { String . to_charlist ( url ) , headers , ~c " application/json" , body }
3333
3434 http_options = build_http_options ( config )
3535
@@ -70,7 +70,8 @@ defmodule Checkend.Client do
7070 options
7171 end
7272
73- defp add_ssl_options ( options , % { ssl_verify: true , ssl_ca_path: ca_path } ) when is_binary ( ca_path ) do
73+ defp add_ssl_options ( options , % { ssl_verify: true , ssl_ca_path: ca_path } )
74+ when is_binary ( ca_path ) do
7475 ssl_opts = [
7576 verify: :verify_peer ,
7677 cacertfile: String . to_charlist ( ca_path )
0 commit comments