nghttpx: Small optimization

This commit is contained in:
Tatsuhiro Tsujikawa 2016-11-04 21:13:22 +09:00
parent 208d71561a
commit 38443d2195
2 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ int HttpDownstreamConnection::push_request_headers() {
// Assume that method and request path do not contain \r\n. // Assume that method and request path do not contain \r\n.
auto meth = http2::to_method_string(req.method); auto meth = http2::to_method_string(req.method);
buf->append(meth); buf->append(meth);
buf->append(" "); buf->append(' ');
if (connect_method) { if (connect_method) {
buf->append(authority); buf->append(authority);

View File

@ -1013,7 +1013,7 @@ int HttpsUpstream::on_downstream_header_complete(Downstream *downstream) {
buf->append(util::utos(req.http_major)); buf->append(util::utos(req.http_major));
buf->append("."); buf->append(".");
buf->append(util::utos(req.http_minor)); buf->append(util::utos(req.http_minor));
buf->append(" "); buf->append(' ');
buf->append(http2::stringify_status(balloc, resp.http_status)); buf->append(http2::stringify_status(balloc, resp.http_status));
buf->append(' '); buf->append(' ');
buf->append(http2::get_reason_phrase(resp.http_status)); buf->append(http2::get_reason_phrase(resp.http_status));