Skip to content
Snippets Groups Projects
Commit 26393a97 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

http2: show the received header for better debugging

parent 7d2f61f6
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment