Skip to content

Commit 9219d7a

Browse files
committed
Whitespace
1 parent 1763dc1 commit 9219d7a

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

main/SAPI.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -540,26 +540,26 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC)
540540
}
541541

542542
switch (op) {
543-
case SAPI_HEADER_SET_STATUS:
544-
sapi_update_response_code((long) arg TSRMLS_CC);
545-
return SUCCESS;
543+
case SAPI_HEADER_SET_STATUS:
544+
sapi_update_response_code((long) arg TSRMLS_CC);
545+
return SUCCESS;
546+
547+
case SAPI_HEADER_REPLACE:
548+
case SAPI_HEADER_ADD: {
549+
sapi_header_line *p = arg;
550+
551+
if (!p->line || !p->line_len) {
552+
return FAILURE;
553+
}
554+
header_line = p->line;
555+
header_line_len = p->line_len;
556+
http_response_code = p->response_code;
557+
replace = (op == SAPI_HEADER_REPLACE);
558+
break;
559+
}
546560

547-
case SAPI_HEADER_REPLACE:
548-
case SAPI_HEADER_ADD: {
549-
sapi_header_line *p = arg;
550-
551-
if (!p->line || !p->line_len) {
561+
default:
552562
return FAILURE;
553-
}
554-
header_line = p->line;
555-
header_line_len = p->line_len;
556-
http_response_code = p->response_code;
557-
replace = (op == SAPI_HEADER_REPLACE);
558-
break;
559-
}
560-
561-
default:
562-
return FAILURE;
563563
}
564564

565565
header_line = estrndup(header_line, header_line_len);

0 commit comments

Comments
 (0)