mirror of
https://github.com/alibaba/higress.git
synced 2026-03-01 23:20:52 +08:00
Update main.go
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user