diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-02-18 15:16:54 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-02-18 15:16:54 +0100 |
commit | 6fe3a41caeb043e77ffeb289d4ede37056b904a3 (patch) | |
tree | 858092f5ea3561c29b98418706fa699208919b82 | |
parent | 5491644e85480586da58e881e6a9bae1c4be947b (diff) | |
download | libmicrohttpd-6fe3a41caeb043e77ffeb289d4ede37056b904a3.tar.gz |
-whitespace and indentation changes only
-rw-r--r-- | src/microhttpd/connection.c | 12 | ||||
-rw-r--r-- | src/testzzuf/Makefile.am | 8 |
2 files changed, 11 insertions, 9 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 5f310c8e..aa7734ab 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -2210,7 +2210,8 @@ setup_reply_properties (struct MHD_Connection *connection) c->rp.props.use_reply_body_headers = (use_rp_body >= RP_BODY_HEADERS_ONLY); #ifdef UPGRADE_SUPPORT - mhd_assert ((NULL == r->upgrade_handler) || (RP_BODY_NONE == use_rp_body)); + mhd_assert ( (NULL == r->upgrade_handler) || + (RP_BODY_NONE == use_rp_body) ); #endif /* UPGRADE_SUPPORT */ if (c->rp.props.use_reply_body_headers) @@ -2237,7 +2238,8 @@ setup_reply_properties (struct MHD_Connection *connection) else use_chunked = false; - if ( (MHD_SIZE_UNKNOWN == r->total_size) && ! use_chunked) + if ( (MHD_SIZE_UNKNOWN == r->total_size) && + (! use_chunked) ) { /* End of the stream is indicated by closure */ c->keepalive = MHD_CONN_MUST_CLOSE; @@ -2262,10 +2264,11 @@ check_connection_reply (struct MHD_Connection *connection) { struct MHD_Connection *const c = connection; /**< a short alias */ struct MHD_Response *const r = c->rp.response; /**< a short alias */ - mhd_assert (c->rp.props.set); + mhd_assert (c->rp.props.set); #ifdef HAVE_MESSAGES - if ((! c->rp.props.use_reply_body_headers) && (0 != r->total_size)) + if ( (! c->rp.props.use_reply_body_headers) && + (0 != r->total_size) ) { MHD_DLOG (c->daemon, _ ("This reply with response code %u cannot use reply body. " @@ -2477,7 +2480,6 @@ build_header_response (struct MHD_Connection *connection) mhd_assert (NULL != r); /* ** Adjust response properties ** */ - setup_reply_properties (c); mhd_assert (c->rp.props.set); diff --git a/src/testzzuf/Makefile.am b/src/testzzuf/Makefile.am index f38c6d0e..5aa7cfa7 100644 --- a/src/testzzuf/Makefile.am +++ b/src/testzzuf/Makefile.am @@ -8,10 +8,10 @@ SUBDIRS = . ZZUF_SEED = 0 # Additional flags for zzuf -ZZUF_FLAGS = +ZZUF_FLAGS = # Additional flags for socat (if socat is used) -SOCAT_FLAGS = +SOCAT_FLAGS = if FORCE_USE_ZZUF_SOCAT TEST_RUNNER_SCRIPT = zzuf_socat_test_runner.sh @@ -95,9 +95,9 @@ warn_vheavy_use: @echo "NOTICE" ; \ echo "NOTICE: Full heavy tests are enabled. Each test may take up to several minutes to complete." ; \ echo "NOTICE" - -tests_common_sources = mhd_debug_funcs.h mhd_debug_funcs.c + +tests_common_sources = mhd_debug_funcs.h mhd_debug_funcs.c test_get_SOURCES = \ test_get.c $(tests_common_sources) |