diff --git a/plugins/wasm-go/extensions/http-call/main.go b/plugins/wasm-go/extensions/http-call/main.go index ec668c2f5..bfc607cde 100644 --- a/plugins/wasm-go/extensions/http-call/main.go +++ b/plugins/wasm-go/extensions/http-call/main.go @@ -102,8 +102,6 @@ func onHttpRequestHeaders(ctx wrapper.HttpContext, config HttpCallConfig, log wr defer proxywasm.ResumeHttpRequest() if statusCode != http.StatusOK { log.Errorf("http call failed, status: %d", statusCode) - proxywasm.SendHttpResponse(http.StatusInternalServerError, nil, - []byte("http call failed"), -1) return } // avoid protocol error