loadmodule "nghttp2.so"
modparam("nghttp2", "listen_addr", "0.0.0.0")
modparam("nghttp2", "listen_port", "8363")
event_route[nghttp2:request] {
xinfo("request: $nghttp2(method) - url: $nghttp2(path) - data: [$nghttp2(data)]\n");
nghttp2_reply("200","OK");
}
curl -H "Content-Type: application/json" -X POST -d '{"test":"data"}' "http://127.0.0.1:8363/"
curl: (56) Recv failure: Connection reset by peer
When using curl request, the message "Recv failure" appears. What is wrong with the settings?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.