@smititelu: I don't think that such lucky/unlucky-based logic is even supposed to be considered for the c code.
If you have some traffic, let's say 10 requests/second, if first one is without the header, you get the warning, the second is with the header and no more warnings, that means in 1 second, 8 requests were processed with wrong value.