apache / apisix-go-plugin-runner

Go Plugin Runner for APISIX
https://apisix.apache.org/
Apache License 2.0
173 stars 68 forks source link

request help: The upstream service cannot be invoked after the header is set in the Filter method #64

Closed rampagecong closed 2 years ago

rampagecong commented 2 years ago

Issue description

w.Header().Set("trace_id",uuid.NewV4().String())
w.Header().Set("span_id",uuid.NewV4().String())

Add the above code to the Filter method, calling the registered route without returning anything and calling the upstream service.

Environment