nghttpx: Log push request headers

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-08 17:25:21 +09:00
parent 0efdeab1db
commit 7aff00496a
1 changed files with 9 additions and 0 deletions

View File

@ -1635,6 +1635,15 @@ int Http2Upstream::submit_push_promise(const std::string &path,
return 0;
}
if (LOG_ENABLED(INFO)) {
std::stringstream ss;
for (auto &nv : nva) {
ss << TTY_HTTP_HD << nv.name << TTY_RST << ": " << nv.value << "\n";
}
ULOG(INFO, this) << "HTTP push request headers. promised_stream_id=" << rv
<< "\n" << ss.str();
}
return 0;
}