Explorar o código

Fixed build error

yhirose %!s(int64=8) %!d(string=hai) anos
pai
achega
484e4415c6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      example/simplesvr.cc

+ 1 - 1
example/simplesvr.cc

@@ -35,7 +35,7 @@ string log(const Request& req, const Response& res)
 
     s += "================================\n";
 
-    snprintf(buf, sizeof(buf), "%s %s", req.method.c_str(), req.url.c_str());
+    snprintf(buf, sizeof(buf), "%s %s", req.method.c_str(), req.path.c_str());
     s += buf;
 
     string query;