nghttpx: Use const ref
This commit is contained in:
parent
75039c573c
commit
1240e55bb6
|
@ -357,7 +357,7 @@ int Http2DownstreamConnection::push_request_headers() {
|
||||||
|
|
||||||
if (xffconf.add) {
|
if (xffconf.add) {
|
||||||
StringRef xff_value;
|
StringRef xff_value;
|
||||||
auto addr = upstream->get_client_handler()->get_ipaddr();
|
const auto &addr = upstream->get_client_handler()->get_ipaddr();
|
||||||
if (xff) {
|
if (xff) {
|
||||||
xff_value = concat_string_ref(balloc, xff->value,
|
xff_value = concat_string_ref(balloc, xff->value,
|
||||||
StringRef::from_lit(", "), addr);
|
StringRef::from_lit(", "), addr);
|
||||||
|
|
Loading…
Reference in New Issue