libcurl icon indicating copy to clipboard operation
libcurl copied to clipboard

Example does not work when response body is compressed

Open guzba opened this issue 4 years ago • 0 comments

Just a note for others if they run into this.

The line outbuf[] &= buffer in the readme.md example will not work if buffer contains compressed (gzip) data. This is because the append treats \0 as the end of the string to append. This does not work for gzip data. The count parameter must be used.

guzba avatar Jun 03 '21 22:06 guzba