PHPWRITE(body, strlen(body));
}
- switch (status)
- {
+ switch (status) {
case 301: http_log(HTTP_G->log.redirect, "301-REDIRECT", header); break;
case 302: http_log(HTTP_G->log.redirect, "302-REDIRECT", header); break;
case 303: http_log(HTTP_G->log.redirect, "303-REDIRECT", header); break;
);
STR_FREE(tk); STR_FREE(tv);
#endif
- switch (st)
- {
+ switch (st) {
case ST_QUOTE:
quote:
if (*c == '"') {
st = ST_ADD;
}
}
- break;
+ break;
case ST_VALUE:
- switch (*c)
- {
+ switch (*c) {
case '"':
if (!val) {
st = ST_QUOTE;
}
- break;
+ break;
case ' ':
- break;
+ break;
case ';':
case '\0':
goto add;
- break;
+ break;
default:
if (!val) {
val = c;
}
- break;
+ break;
}
- break;
+ break;
case ST_KEY:
- switch (*c)
- {
+ switch (*c) {
case ',':
if (allow_comma_sep) {
goto allow_comma;
case '\013':
case '\014':
goto failure;
- break;
+ break;
case '=':
if (key) {
} else {
goto failure;
}
- break;
+ break;
case ' ':
if (key) {
keylen = c - key;
st = ST_ASSIGN;
}
- break;
+ break;
case ';':
case '\0':
keylen = c - key;
st = ST_ADD;
}
- break;
+ break;
default:
if (!key) {
key = c;
}
- break;
+ break;
}
- break;
+ break;
case ST_ASSIGN:
if (*c == '=') {
} else if (*c != ' ') {
goto failure;
}
- break;
+ break;
case ST_ADD:
add:
st = ST_KEY;
key = val = NULL;
keylen = vallen = 0;
- break;
+ break;
}
if (*c) {