浏览代码

Merge pull request #362 from yehudasa/wip-drain-data-fix

discard unread data if handled by begin_request()
bel2125 8 年之前
父节点
当前提交
f16b9b9eb8
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -10317,6 +10317,7 @@ handle_request(struct mg_connection *conn)
 				/* callback already processed the request. Store the
 				   return value as a status code for the access log. */
 				conn->status_code = i;
+				discard_unread_request_data(conn);
 				return;
 			} else if (i == 0) {
 				/* civetweb should process the request */