lib/bunny_app/client.rb in bunny_app-1.27.0 vs lib/bunny_app/client.rb in bunny_app-1.28.0

- old
+ new

@@ -17,10 +17,12 @@ @headers = { 'User-Agent' => USER_AGENT, 'Content-Type' => 'application/json', 'Authorization' => "Bearer #{BunnyApp.access_token}" } + + @headers['Host'] = host_header unless host_header.nil? end def fetch_access_token body = URI.encode_www_form({ grant_type: 'client_credentials', @@ -86,8 +88,12 @@ end end def verify_ssl return true unless ENV['IGNORE_SSL'] + end + + def host_header + ENV.fetch('BUNNY_HOST_HEADER', nil) end end end