Could you show what error and how the buffer was assigned? On Tue, Jan 24, 2017 at 8:17 AM, Miguel Sancho <miguel.a.san...@gmail.com> wrote:
> Hi, > using the *MHD_RESPMEM_PERSISTENT* option I am getting an error. The > following HTTP response gives a corrupt file when downloading from > libmicrohttpd.0.9.50. However same code with *MHD_RESPMEM_MUST_COPY > option *works fine: > > response = MHD_create_response_from_buffer(size,(void*)buffer, > > *MHD_RESPMEM_PERSISTENT*); > ret = MHD_queue_response (connection, 200, response); > MHD_destroy_response (response); > free(buffer); > > The buffer isn't changed for at least the lifetime of the response, what > is wrong here? > > Thanks > > Miguel > > -- Silvio Clécio