Skip to content

Commit

Permalink
plugins/grpc: fix method iteration (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
chokoswitch committed Sep 19, 2023
1 parent 047b2d4 commit 03cec98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/grpc/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ type errorResponse struct {

func (p *plugin) AddToHandler(handler *http.ServeMux) {
for _, m := range p.methods {
m := m
handler.HandleFunc(m.path, func(w http.ResponseWriter, r *http.Request) {
body := r.Body
defer body.Close()
Expand Down

0 comments on commit 03cec98

Please sign in to comment.