Skip to content

Commit

Permalink
[core] mark debug path unlikely
Browse files Browse the repository at this point in the history
mark debug path unlikely
remove redundant debug trace
  • Loading branch information
gstrauss committed Apr 2, 2021
1 parent 91b3b3b commit 7a078f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)*/
Expand Down
3 changes: 0 additions & 3 deletions src/response.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7a078f5

Please sign in to comment.