api7 / wasm-nginx-module

Run Wasm in OpenResty/Nginx
Apache License 2.0
183 stars 22 forks source link

bugfix: proxywasm.GetHttpRequestHeader(":authority") #153

Closed Sn0rt closed 1 year ago

Sn0rt commented 1 year ago

the code can't run as normal

    case "req_hdr_get_authority":
        authority, err := proxywasm.GetHttpRequestHeader(":authority")
        if err != nil {
            proxywasm.LogErrorf("error get request authority: %v", err)
            return types.ActionContinue
        }
        proxywasm.LogWarnf("get request authority: %v", authority)