From 87f4f1d4f581c2d78cdfb256b6ef67c8f578329d Mon Sep 17 00:00:00 2001 From: MATSUMOTO Ryosuke Date: Tue, 31 Dec 2013 20:51:34 +0900 Subject: [PATCH] Fix :host header bug --- examples/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/client.c b/examples/client.c index 2bb8b1e5..f7497f52 100644 --- a/examples/client.c +++ b/examples/client.c @@ -528,7 +528,7 @@ static void submit_request(struct Connection *connection, struct Request *req) MAKE_NV(":method", "GET"), MAKE_NV_CS(":path", req->path), MAKE_NV(":scheme", "https"), - MAKE_NV_CS(":host", req->hostport), + MAKE_NV_CS(":authority", req->hostport), MAKE_NV("accept", "*/*"), MAKE_NV("user-agent", "nghttp2/"NGHTTP2_VERSION) };