mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Whitespace
This commit is contained in:
parent
1763dc162d
commit
9219d7aa57
36
main/SAPI.c
36
main/SAPI.c
@ -540,26 +540,26 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC)
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (op) {
|
switch (op) {
|
||||||
case SAPI_HEADER_SET_STATUS:
|
case SAPI_HEADER_SET_STATUS:
|
||||||
sapi_update_response_code((long) arg TSRMLS_CC);
|
sapi_update_response_code((long) arg TSRMLS_CC);
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
|
|
||||||
case SAPI_HEADER_REPLACE:
|
case SAPI_HEADER_REPLACE:
|
||||||
case SAPI_HEADER_ADD: {
|
case SAPI_HEADER_ADD: {
|
||||||
sapi_header_line *p = arg;
|
sapi_header_line *p = arg;
|
||||||
|
|
||||||
if (!p->line || !p->line_len) {
|
if (!p->line || !p->line_len) {
|
||||||
|
return FAILURE;
|
||||||
|
}
|
||||||
|
header_line = p->line;
|
||||||
|
header_line_len = p->line_len;
|
||||||
|
http_response_code = p->response_code;
|
||||||
|
replace = (op == SAPI_HEADER_REPLACE);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
default:
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
|
||||||
header_line = p->line;
|
|
||||||
header_line_len = p->line_len;
|
|
||||||
http_response_code = p->response_code;
|
|
||||||
replace = (op == SAPI_HEADER_REPLACE);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
|
||||||
return FAILURE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
header_line = estrndup(header_line, header_line_len);
|
header_line = estrndup(header_line, header_line_len);
|
||||||
|
Loading…
Reference in New Issue
Block a user