Skip to content

Commit 4713d80

Browse files
committed
add 500 status
1 parent b225669 commit 4713d80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

zan-extension/swoole_http_server.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,6 +2446,7 @@ static void worker_error_handler(int error_num, const char *error_filename, cons
24462446
buffer_len = sizeof(buffer) - 1;
24472447
}
24482448

2449+
current_ctx->response.status = 500;
24492450
zval *zresponse = current_ctx->response.zobject;
24502451
zval *function = NULL;
24512452
SW_MAKE_STD_ZVAL(function);

0 commit comments

Comments
 (0)