mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:23:36 +03:00
cookie: small variable type cleanups
- bump cookie counter and "creation time" to use 'unsigned int' - use BIT() for single-bit struct field - make invalid_octets() return bool properly Closes #15921
This commit is contained in:
parent
f6566f332f
commit
0cc458686c
2 changed files with 6 additions and 6 deletions
|
|
@ -438,7 +438,7 @@ static bool bad_domain(const char *domain, size_t len)
|
|||
fine. The prime reason for filtering out control bytes is that some HTTP
|
||||
servers return 400 for requests that contain such.
|
||||
*/
|
||||
static int invalid_octets(const char *p)
|
||||
static bool invalid_octets(const char *p)
|
||||
{
|
||||
/* Reject all bytes \x01 - \x1f (*except* \x09, TAB) + \x7f */
|
||||
static const char badoctets[] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue