Merge pull request 'Read full GraphQL body IO' (#64) from read-full-graphql-body into main
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: mentorenwahl/mentorenwahl#64
This commit is contained in:
Dominic Grimm 2022-02-25 09:35:42 +00:00
commit fc3b323a5d

View file

@ -55,7 +55,7 @@ module Backend
post "/" do |context| post "/" do |context|
context.response.content_type = "application/json" context.response.content_type = "application/json"
data = GraphQLQueryData.from_json(context.request.body.not_nil!.gets.not_nil!) data = GraphQLQueryData.from_json(context.request.body.not_nil!.gets_to_end.not_nil!)
development = {% if flag?(:development) %} development = {% if flag?(:development) %}
context.request.query_params["development"]? == "true" context.request.query_params["development"]? == "true"
{% else %} {% else %}