You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/10 04:10:36 UTC

[GitHub] [apisix] Gary-Airwallex commented on issue #6266: bug: ctx.lua#59 parse_graphql(ctx)

Gary-Airwallex commented on issue #6266:
URL: https://github.com/apache/apisix/issues/6266#issuecomment-1034473794


   @Chever-John May I also suggest that the `parse_graphql` function should handle the case of GET requests? https://graphql.org/learn/serving-over-http/#get-request
   Currently an error message is returned regardless of HTTP method used.
   ```
   local body, err = request.get_body(max_size, ctx)
   if not body then
       return nil, "failed to read graphql body: " .. (err or "request body has zero size")
   end
   ``` 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org