Closed maximilianfridrich closed 4 months ago
The setters http_client_set_certpem and http_client_set_keypem pre-allocated a fixed size buffer of 512 byte. The required size is known at that time, so the correct size can be allocated right away and no resizing is needed in mbuf_write_str.
http_client_set_certpem
http_client_set_keypem
mbuf_write_str
Thanks, if you dont mind I will merge this after the release tomorrow ...
Sounds good, there is no rush. Thanks @alfredh.
The setters
http_client_set_certpem
andhttp_client_set_keypem
pre-allocated a fixed size buffer of 512 byte. The required size is known at that time, so the correct size can be allocated right away and no resizing is needed inmbuf_write_str
.