The counter used to stop accepting cookies after a certain amount has
been received in a single response would previously also count some
cookies that were not actually accepted as they were discarded after the
counter was increased.
Starting now, the counter is increased only for cookies that were
accepted.
Pointed out by ZeroPath
Closes #19157
if(!co->name)
return CERR_BAD;
- data->req.setcookies++;
return CERR_OK;
}
if(co->expires && (co->expires < ci->next_expiration))
ci->next_expiration = co->expires;
+ if(httpheader)
+ data->req.setcookies++;
+
return co;
fail:
freecookie(co);