Browse Source

Example: Use new field local_uri instead of obsolete field uri (see #393)

bel 8 years ago
parent
commit
0413225271
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/embedded_c/embedded_c.c

+ 1 - 1
examples/embedded_c/embedded_c.c

@@ -162,7 +162,7 @@ FooHandler(struct mg_connection *conn, void *cbdata)
 	mg_printf(conn,
 	          "<p>The request was:<br><pre>%s %s HTTP/%s</pre></p>",
 	          req_info->request_method,
-	          req_info->uri,
+	          req_info->local_uri,
 	          req_info->http_version);
 	mg_printf(conn, "</body></html>\n");
 	return 1;