Przeglądaj źródła

discard unread data if handled by begin_request()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh 8 lat temu
rodzic
commit
1abe1039e7
1 zmienionych plików z 1 dodań i 0 usunięć
  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 */