Skip to content

Commit

Permalink
fix(grpc-web): useless code and code format
Browse files Browse the repository at this point in the history
  • Loading branch information
bzp2010 committed Feb 25, 2025
1 parent 2a5425f commit 8031b34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apisix/plugins/grpc-web.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ local build_trailer = function (grpc_status, grpc_message)
-- n bytes: trailer
trailer_buf = trailer_buf .. grpc_web_trailer

return trailer_buf
return trailer_buf
end

function _M.access(conf, ctx)
Expand Down Expand Up @@ -157,7 +157,6 @@ function _M.access(conf, ctx)

if encoding == CONTENT_ENCODING_BASE64 then
body = decode_base64(body)
ngx.log(ngx.WARN, "DECODE BODY: ", body)
if not body then
core.log.error("failed to decode request body")
return exit(ctx, 400)
Expand Down

0 comments on commit 8031b34

Please sign in to comment.