Fixed problem with log format in server examples

This commit is contained in:
yhirose 2018-09-14 17:53:11 -04:00
parent 28d17448b7
commit 9546ec842b
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ std::string log(const Request& req, const Response& res)
s += "================================\n"; 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; s += buf;
std::string query; std::string query;

View file

@ -67,7 +67,7 @@ string log(const Request& req, const Response& res)
s += "================================\n"; 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; s += buf;
string query; string query;