Skip to content

Commit

Permalink
Add Heroku API v3 header to Generic
Browse files Browse the repository at this point in the history
  • Loading branch information
BanzaiMan committed May 24, 2017
1 parent 1b9afbc commit 173abba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/dpl/provider/heroku/generic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ def api
end

def api_options
api_options = { headers: { 'User-Agent' => user_agent(::Heroku::API::HEADERS.fetch('User-Agent')) } }
api_options = { headers: {
'User-Agent' => user_agent(::Heroku::API::HEADERS.fetch('User-Agent')),
"Accept" => "application/vnd.heroku+json; version=3",
} }
if options[:user] and options[:password]
api_options[:user] = options[:user]
api_options[:password] = options[:password]
Expand Down

0 comments on commit 173abba

Please sign in to comment.