commit 63bbc1fa0fb5855953b476692bae60192a31c441
parent 6b1f02e6b06e8a9f1beb3a1673cfb2cf2ffd7c0d
Author: Joris Vink <joris@coders.se>
Date: Fri, 17 Sep 2021 19:56:35 +0200
Be sure content_length is 0, just in case.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/http.c b/src/http.c
@@ -2038,6 +2038,7 @@ http_request_new(struct connection *c, const char *host,
req->http_body = NULL;
req->http_body_fd = -1;
req->hdlr_extra = NULL;
+ req->content_length = 0;
req->query_string = NULL;
req->http_body_length = 0;
req->http_body_offset = 0;