Commit f10df2e1 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Merge branch 'fix_state_body_read' into 'master'

use read method to get request body

Closes #215391

See merge request gitlab-org/gitlab!30223
parents e88b78e5 bf7fd679
......@@ -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