From e0e9bc16bffb7fe331b85de607235168b553d6e5 Mon Sep 17 00:00:00 2001 From: Ai Hoshino Date: Fri, 6 Oct 2023 07:43:58 +0800 Subject: fix(serve): fix `close_connection` behaviour in `endWithoutBody` (#6315) Close: #6031 --- src/deps/_libusockets.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/deps/_libusockets.h') diff --git a/src/deps/_libusockets.h b/src/deps/_libusockets.h index 5ca0e7df8..e9dbb6938 100644 --- a/src/deps/_libusockets.h +++ b/src/deps/_libusockets.h @@ -264,7 +264,7 @@ void uws_res_write_header(int ssl, uws_res_t *res, const char *key, void uws_res_write_header_int(int ssl, uws_res_t *res, const char *key, size_t key_length, uint64_t value); -void uws_res_end_without_body(int ssl, uws_res_t *res); +void uws_res_end_without_body(int ssl, uws_res_t *res, bool close_connection); void uws_res_end_stream(int ssl, uws_res_t *res, bool close_connection); bool uws_res_write(int ssl, uws_res_t *res, const char *data, size_t length); uintmax_t uws_res_get_write_offset(int ssl, uws_res_t *res); @@ -304,7 +304,6 @@ size_t uws_req_get_parameter(uws_req_t *res, unsigned short index, const char **dest); void uws_req_for_each_header(uws_req_t *res, uws_get_headers_server_handler handler, void *user_data); - struct us_loop_t *uws_get_loop(); struct us_loop_t *uws_get_loop_with_native(void* existing_native_loop); @@ -336,4 +335,4 @@ void uws_app_close(int ssl, uws_app_t *app); } #endif -#endif \ No newline at end of file +#endif -- cgit v1.2.3