]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http2: debug ouput sent HTTP/2 request headers
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Sep 2016 12:12:53 +0000 (14:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Sep 2016 07:00:20 +0000 (09:00 +0200)
lib/http2.c

index c2257726a365e9498ace70f2e99b0c398dbc7b2c..de64c318654e7244de8e86da71ea41cb8ad55526 100644 (file)
@@ -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) {