Commit 38443d21 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Small optimization

parent 208d7156
......@@ -366,7 +366,7 @@ int HttpDownstreamConnection::push_request_headers() {
// Assume that method and request path do not contain \r\n.
auto meth = http2::to_method_string(req.method);
buf->append(meth);
buf->append(" ");
buf->append(' ');
if (connect_method) {
buf->append(authority);
......
......@@ -1013,7 +1013,7 @@ int HttpsUpstream::on_downstream_header_complete(Downstream *downstream) {
buf->append(util::utos(req.http_major));
buf->append(".");
buf->append(util::utos(req.http_minor));
buf->append(" ");
buf->append(' ');
buf->append(http2::stringify_status(balloc, resp.http_status));
buf->append(' ');
buf->append(http2::get_reason_phrase(resp.http_status));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment