Skip to content

Commit

Permalink
ci changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Affanmir committed Jan 8, 2024
1 parent 34bf589 commit 69f8c62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions apisix/plugins/grpc-web.lua
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,4 @@ function _M.body_filter(conf, ctx)
ngx_arg[1] = chunk
end
end

return _M
return _M
6 changes: 3 additions & 3 deletions t/plugin/grpc-web.t
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ OPTIONS /grpc/web/a6.RouteService/GetRoute
--- error_code: 204
--- response_headers
Access-Control-Allow-Methods: POST, OPTIONS
Access-Control-Allow-Headers: content-type,x-grpc-web,x-user-agent
Access-Control-Allow-Headers: content-type,x-grpc-web,x-user-agent,grpc-accept-encoding
Access-Control-Allow-Origin: *
Expand Down Expand Up @@ -228,7 +228,7 @@ Content-Type: application/grpc-web
Access-Control-Allow-Origin: http://test.com
Content-Type: application/grpc-web
=== TEST 11: grpc-web access control expose headers for non grpc servers that don't implment grpc-web
=== TEST 11: grpc-web access control expose headers for non grpc servers that don't implement grpc-web
--- request
POST /grpc/web/a6.RouteService/GetRoute
{}
Expand All @@ -238,5 +238,5 @@ Content-Type: application/grpc-web
--- response_headers
Access-Control-Allow-Origin: http://test.com
Content-Type: application/grpc-web
Access-Control-Expose-Headers: grpc-status,grpc-message
Access-Control-Expose-Headers: grpc-status,grpc-message,

0 comments on commit 69f8c62

Please sign in to comment.