Selaa lähdekoodia

Fix build embedded_cpp.cpp
Fix .gitignore (VC++2015)

pavel.pimenov 8 vuotta sitten
vanhempi
commit
4585d808a1
2 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 2 0
      .gitignore
  2. 2 2
      examples/embedded_cpp/embedded_cpp.cpp

+ 2 - 0
.gitignore

@@ -112,6 +112,8 @@ ipch/
 *.opensdf
 *.sdf
 *.cachefile
+*.VC.db
+*.VC.VC.opendb
 
 # Visual Studio profiler
 *.psess

+ 2 - 2
examples/embedded_cpp/embedded_cpp.cpp

@@ -137,7 +137,7 @@ class FooHandler : public CivetHandler
 		mg_printf(conn,
 		          "<p>The request was:<br><pre>%s %s HTTP/%s</pre></p>\n",
 		          req_info->request_method,
-		          req_info->uri,
+		          req_info->request_uri,
 		          req_info->http_version);
 		mg_printf(conn, "</body></html>\n");
 
@@ -162,7 +162,7 @@ class FooHandler : public CivetHandler
 		mg_printf(conn,
 		          "<p>The request was:<br><pre>%s %s HTTP/%s</pre></p>\n",
 		          req_info->request_method,
-		          req_info->uri,
+		          req_info->request_uri,
 		          req_info->http_version);
 		mg_printf(conn, "<p>Content Length: %li</p>\n", (long)tlen);
 		mg_printf(conn, "<pre>\n");