libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] largepost.c tutorial returns odd results


From: Christian Grothoff
Subject: Re: [libmicrohttpd] largepost.c tutorial returns odd results
Date: Thu, 23 Aug 2012 14:37:26 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.6esrpre) Gecko/20120817 Icedove/10.0.6

Fixed in SVN 23381. -Christian

On 08/23/2012 01:41 AM, address@hidden wrote:
Hey Christian,

Thanks for fixing that!  One other little thing about largepost.c:

In answer_to_connection for the if if (0 != *upload_data_size) {...} else 
{...}, the file pointer in con_info is still open when it goes to the else 
statement.  In the else statement, before the call to send_page, should be 
something like:

if (con_info->fp)
   fclose (con_info->fp)
// Now it is safe to open and inspect the file before calling send_page with a 
response

All the best,
~Mike





reply via email to

[Prev in Thread] Current Thread [Next in Thread]