mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Fixed problem with log format in server examples
This commit is contained in:
parent
28d17448b7
commit
9546ec842b
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue