Skip to content

Commit

Permalink
http: allow zeroing http_remote_host_hdr with SIGHUP
Browse files Browse the repository at this point in the history
References: GXF-77
  • Loading branch information
jengelh committed Dec 11, 2023
1 parent bf72694 commit b470dfb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions exch/http/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ static bool http_reload_config(std::shared_ptr<CONFIG_FILE> cfg,
mlog(LV_ERR, "config_file_init %s: %s", opt_config_file, strerror(errno));
return false;
}
auto s = cfg->get_value("http_remote_host_hdr");
if (s != nullptr)
g_http_remote_host_hdr = s;
g_http_remote_host_hdr = znul(xcfg->get_value("http_remote_host_hdr"));
return true;
}

Expand Down

0 comments on commit b470dfb

Please sign in to comment.