tinyhttp
tinyhttp copied to clipboard
HEAD command seems to not be supported
When a HEAD command is sent, the process is not fully made.
In http.c file, in http_dataAPI, seems that after
--size;
++data;
the following code needs to be added:
if (!size)
{
// Case of HEAD (no body content)
*read = 0;
return 0;
}