Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
add client buffer_out after headers
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFrench committed Jul 26, 2018
1 parent fb1e594 commit 5c8640c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion evhtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5386,12 +5386,15 @@ evhtp_make_request(evhtp_connection_t * c, evhtp_request_t * r,
}


evbuffer_add_buffer(obuf, r->buffer_out);
}

evhtp_headers_for_each(r->headers_out, htp__create_headers_, obuf);
evbuffer_add_reference(obuf, "\r\n", 2, NULL, NULL);


if (evbuffer_get_length(r->buffer_out)) {
evbuffer_add_buffer(obuf, r->buffer_out);
}

return 0;
} /* evhtp_make_request */
Expand Down

0 comments on commit 5c8640c

Please sign in to comment.