Browse Source

[core] mark debug path unlikely

mark debug path unlikely
remove redundant debug trace
master
Glenn Strauss 8 months ago
parent
commit
7a078f567a
  1. 2
      src/request.c
  2. 3
      src/response.c

2
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)*/

3
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);

Loading…
Cancel
Save