浏览代码

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

bel 8 年之前
父节点
当前提交
0413225271
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;