diff --git a/src/request.c b/src/request.c index 069c63c92..88484d5bf 100644 --- a/src/request.c +++ b/src/request.c @@ -1321,7 +1321,7 @@ http_request_headers_process (request_st * const restrict r, char * const restri http_request_headers_fin(r); - if (0 != r->http_status) { + if (__builtin_expect( (0 != r->http_status), 0)) { if (r->conf.log_request_header_on_error) { /*(http_request_parse_headers() modifies hdrs only to * undo line-wrapping in-place using spaces)*/ diff --git a/src/response.c b/src/response.c index b75c8bcf9..6a4f68cec 100644 --- a/src/response.c +++ b/src/response.c @@ -311,9 +311,6 @@ static handler_t http_status_set_error_close (request_st * const r, int status) } static handler_t http_response_config (request_st * const r) { - if (r->conf.log_condition_handling) - log_error(r->conf.errh, __FILE__, __LINE__, "run condition"); - config_cond_cache_reset(r); config_patch_config(r);