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.
pull/84/head
Matthieu Gautier 9 years ago
parent b5c91417ff
commit ad7238b0c9

@ -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);

Loading…
Cancel
Save