nghttpx: Use const ref

This commit is contained in:
Tatsuhiro Tsujikawa 2016-10-03 22:05:47 +09:00
parent 75039c573c
commit 1240e55bb6
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ int Http2DownstreamConnection::push_request_headers() {
if (xffconf.add) {
StringRef xff_value;
auto addr = upstream->get_client_handler()->get_ipaddr();
const auto &addr = upstream->get_client_handler()->get_ipaddr();
if (xff) {
xff_value = concat_string_ref(balloc, xff->value,
StringRef::from_lit(", "), addr);