Stop refusing the first connection.

I don't know why we are refusing the first connection.

It seems to work without this.
Moreover, this is not thread safe and it would be pretty complex to
make it thread safe.
This commit is contained in:
Matthieu Gautier 2017-10-10 16:58:31 +02:00
parent b5c91417ff
commit ad7238b0c9

View File

@ -647,17 +647,6 @@ static int accessHandlerCallback(void* cls,
if (0 != strcmp(method, "GET") && 0 != strcmp(method, "POST"))
return MHD_NO;
/* The first time only the headers are valid, do not respond in the first
* round... */
static int dummy;
if (&dummy != *ptr) {
*ptr = &dummy;
return MHD_YES;
}
/* clear context pointer */
*ptr = NULL;
if (isVerbose.load()) {
printf("Requesting : \n");
printf("u : %s\n", url);