mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
style: status change to std http status (#758)
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/tetratelabs/proxy-wasm-go-sdk/proxywasm"
|
||||
"github.com/tetratelabs/proxy-wasm-go-sdk/proxywasm/types"
|
||||
|
||||
@@ -36,6 +38,6 @@ func onHttpRequestHeaders(ctx wrapper.HttpContext, config HelloWorldConfig, log
|
||||
if err != nil {
|
||||
log.Critical("failed to set request header")
|
||||
}
|
||||
proxywasm.SendHttpResponse(200, nil, []byte("hello world"), -1)
|
||||
proxywasm.SendHttpResponse(http.StatusOK, nil, []byte("hello world"), -1)
|
||||
return types.ActionContinue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user