浏览代码

Merge branch 'master' of https://github.com/civetweb/civetweb into cipher_list

Mateusz Gralka 9 年之前
父节点
当前提交
99aaac3954
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/civetweb.c

+ 3 - 1
src/civetweb.c

@@ -9797,12 +9797,14 @@ log_access(const struct mg_connection *conn)
 	            NULL, /* Ignore truncation in access log */
 	            NULL, /* Ignore truncation in access log */
 	            buf,
 	            buf,
 	            sizeof(buf),
 	            sizeof(buf),
-	            "%s - %s [%s] \"%s %s HTTP/%s\" %d %" INT64_FMT " %s %s",
+	            "%s - %s [%s] \"%s %s%s%s HTTP/%s\" %d %" INT64_FMT " %s %s",
 	            src_addr,
 	            src_addr,
 	            ri->remote_user == NULL ? "-" : ri->remote_user,
 	            ri->remote_user == NULL ? "-" : ri->remote_user,
 	            date,
 	            date,
 	            ri->request_method ? ri->request_method : "-",
 	            ri->request_method ? ri->request_method : "-",
 	            ri->request_uri ? ri->request_uri : "-",
 	            ri->request_uri ? ri->request_uri : "-",
+	            ri->query_string ? "?" : "",
+	            ri->query_string ? ri->query_string : "",
 	            ri->http_version,
 	            ri->http_version,
 	            conn->status_code,
 	            conn->status_code,
 	            conn->num_bytes_sent,
 	            conn->num_bytes_sent,