mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 11:22:38 -04:00
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:
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…
x
Reference in New Issue
Block a user