lib/bunny_app/client.rb in bunny_app-1.28.0 vs lib/bunny_app/client.rb in bunny_app-1.29.0
- old
+ new
@@ -17,12 +17,10 @@
@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',
@@ -88,12 +86,8 @@
end
end
def verify_ssl
return true unless ENV['IGNORE_SSL']
- end
-
- def host_header
- ENV.fetch('BUNNY_HOST_HEADER', nil)
end
end
end