From 9546ec842b4188e459be6ed2d52c256c442e3942 Mon Sep 17 00:00:00 2001 From: yhirose Date: Fri, 14 Sep 2018 17:53:11 -0400 Subject: [PATCH] Fixed problem with log format in server examples --- example/server.cc | 2 +- example/simplesvr.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/server.cc b/example/server.cc index b3de034..4adcb57 100644 --- a/example/server.cc +++ b/example/server.cc @@ -35,7 +35,7 @@ std::string log(const Request& req, const Response& res) s += "================================\n"; - snprintf(buf, sizeof(buf), "%s %s %s", req.method.c_str(), req.path.c_str(), req.version.c_str()); + snprintf(buf, sizeof(buf), "%s %s %s", req.method.c_str(), req.version.c_str(), req.path.c_str()); s += buf; std::string query; diff --git a/example/simplesvr.cc b/example/simplesvr.cc index 4a6fe0c..124a314 100644 --- a/example/simplesvr.cc +++ b/example/simplesvr.cc @@ -67,7 +67,7 @@ string log(const Request& req, const Response& res) s += "================================\n"; - snprintf(buf, sizeof(buf), "%s %s %s", req.method.c_str(), req.path.c_str(), req.version.c_str()); + snprintf(buf, sizeof(buf), "%s %s %s", req.method.c_str(), req.version.c_str(), req.path.c_str()); s += buf; string query;