diff options
author | Zeev Suraski <zeev@php.net> | 2006-12-18 12:32:08 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2006-12-18 12:32:08 +0000 |
commit | 9219d7aa57dd88236a9e5d740a1a6d34de097467 (patch) | |
tree | 2fda44f99f906a20a505913fc6f13fc6235b9638 /main/SAPI.c | |
parent | 1763dc162d93999d2c3e108a21f0596ed61b89ab (diff) | |
download | php-git-9219d7aa57dd88236a9e5d740a1a6d34de097467.tar.gz |
Whitespace
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index c23357c65d..a760ded4a8 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -540,26 +540,26 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) } switch (op) { - case SAPI_HEADER_SET_STATUS: - sapi_update_response_code((long) arg TSRMLS_CC); - return SUCCESS; + case SAPI_HEADER_SET_STATUS: + sapi_update_response_code((long) arg TSRMLS_CC); + return SUCCESS; + + case SAPI_HEADER_REPLACE: + case SAPI_HEADER_ADD: { + sapi_header_line *p = arg; + + 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; + } - case SAPI_HEADER_REPLACE: - case SAPI_HEADER_ADD: { - sapi_header_line *p = arg; - - if (!p->line || !p->line_len) { + default: 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); |