nghttpx: Small optimization
This commit is contained in:
parent
208d71561a
commit
38443d2195
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue