aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-08-07 13:26:02 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-08-07 13:26:15 +0200
commit26393a97b28a1c5785d482dd9383f800755ad533 (patch)
tree0e0dc16336513070b99a137ca6fb09401e2776a5
parent7d2f61f66ab4e047fc9aefc2effc1ac6d340a66a (diff)
http2: show the received header for better debugging
-rw-r--r--lib/http2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c
index c53012d6e..fa2fb50bf 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -498,11 +498,13 @@ static int on_header(nghttp2_session *session, const nghttp2_frame *frame,
}
/* convert to a HTTP1-style header */
- infof(conn->data, "got header\n");
Curl_add_buffer(c->header_recvbuf, name, namelen);
Curl_add_buffer(c->header_recvbuf, ":", 1);
Curl_add_buffer(c->header_recvbuf, value, valuelen);
Curl_add_buffer(c->header_recvbuf, "\r\n", 2);
+
+ infof(conn->data, "got http2 header: %*s: %*s\n",
+ namelen, name, valuelen, value);
}
return 0; /* 0 is successful */