Commit fc092590 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix a buglet which prevented req.body from being shown.

parent 2f831e55
...@@ -448,6 +448,7 @@ http_swallow_body(struct http *hp, char * const *hh, int body) ...@@ -448,6 +448,7 @@ http_swallow_body(struct http *hp, char * const *hh, int body)
ll = 0; ll = 0;
p = http_find_header(hh, "content-length"); p = http_find_header(hh, "content-length");
if (p != NULL) { if (p != NULL) {
hp->body = hp->rxbuf + hp->prxbuf;
l = strtoul(p, NULL, 0); l = strtoul(p, NULL, 0);
(void)http_rxchar(hp, l, 0); (void)http_rxchar(hp, l, 0);
vtc_dump(hp->vl, 4, "body", hp->body, l); vtc_dump(hp->vl, 4, "body", hp->body, l);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment