From f423a009715ce3fb5505434f97598fcf3a39f7ab Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Sep 2016 14:12:53 +0200 Subject: [PATCH] http2: debug ouput sent HTTP/2 request headers --- lib/http2.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/http2.c b/lib/http2.c index c2257726a..de64c3186 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -1796,6 +1796,10 @@ static ssize_t http2_send(struct connectdata *conn, int sockindex, if(nva[i].valuelen > max_acc - acc) break; acc += nva[i].valuelen; + + DEBUGF(infof(conn->data, "h2 header: %.*s:%.*s\n", + nva[i].namelen, nva[i].name, + nva[i].valuelen, nva[i].value)); } if(i != nheader) {