mirror of
https://github.com/alibaba/higress.git
synced 2026-06-07 03:37:28 +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()
|
defer proxywasm.ResumeHttpRequest()
|
||||||
if statusCode != http.StatusOK {
|
if statusCode != http.StatusOK {
|
||||||
log.Errorf("http call failed, status: %d", statusCode)
|
log.Errorf("http call failed, status: %d", statusCode)
|
||||||
proxywasm.SendHttpResponse(http.StatusInternalServerError, nil,
|
|
||||||
[]byte("http call failed"), -1)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// avoid protocol error
|
// avoid protocol error
|
||||||
|
|||||||
Reference in New Issue
Block a user