Since version 1.0.0, it's forbidden to have a cookie specified without at
least one server. This test is useless and makes it complex to write APIs
to iteratively generate working configurations. Remove the test.
case PR_MODE_HTTP:
curproxy->acl_requires |= ACL_USE_L7_ANY;
- if ((curproxy->cookie_name != NULL) && (curproxy->srv == NULL)) {
- Alert("config : HTTP proxy %s has a cookie but no server list !\n",
- curproxy->id);
- cfgerr++;
- }
break;
}