diff --git a/ircd/server.cc b/ircd/server.cc index ab2af71fb..44cc4efc5 100644 --- a/ircd/server.cc +++ b/ircd/server.cc @@ -340,13 +340,20 @@ ircd::server::loghead(const mutable_buffer &buf, const request &request) try { - if(empty(request.in.head)) - return ""; + if(empty(request.out.head)) + return ""; parse::buffer pb{request.out.head}; - parse::capstan pc{pb}; + parse::capstan pc{pb, [](char *&read, char *stop) + { + read = stop; + }}; + pc.read += size(request.out.head); const http::request::head head{pc}; + if(!head.method || !head.path) + return ""; + return fmt::sprintf { buf, "%s %s", head.method, head.path