Commit bf7fd679 authored by Anselm Eberhardt's avatar Anselm Eberhardt

use read method to get request body

method string does not exist for class Unicorn::TeeInput

#215391
parent 5b5e19c6
......@@ -46,7 +46,7 @@ module API
desc 'Add a new terraform state or update an existing one'
route_setting :authentication, basic_auth_personal_access_token: true
post do
data = request.body.string
data = request.body.read
no_content! if data.empty?
remote_state_handler.handle_with_lock do |state|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment