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;