Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-24 09:10:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-24 09:10:09 +0300
commit48d01de234da5a6e28455715230d902fc60feb89 (patch)
tree1a60bd1cddbd55a57ee208d43529a7248fb3fe72 /lib
parentd3776a363c2e7092801a68e4f8d46df5993de867 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/api/terraform/state.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/terraform/state.rb b/lib/api/terraform/state.rb
index 052c75188ab..5141d1fd499 100644
--- a/lib/api/terraform/state.rb
+++ b/lib/api/terraform/state.rb
@@ -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|