Skip to content

Commit

Permalink
fix(grpc-gateway) grpc calls are POST
Browse files Browse the repository at this point in the history
  • Loading branch information
javierguerragiraldez authored and gszr committed Jun 17, 2021
1 parent 680262c commit 3c5eddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/plugins/grpc-gateway/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function grpc_gateway:access(conf)
kong_service_request_set_raw_body(dec:upstream(kong_request_get_raw_body()))

ngx.req.set_uri(dec.rewrite_path)
-- kong_service_request_set_method("POST")
kong_service_request_set_method("POST")
end


Expand Down Expand Up @@ -96,4 +96,4 @@ function grpc_gateway:body_filter(conf)
end


return grpc_gateway
return grpc_gateway

0 comments on commit 3c5eddb

Please sign in to comment.