Przeglądaj źródła

Merge pull request #49 from NetDevLtd/reset-request

Reset data from previous response for new request
bel2125 10 lat temu
rodzic
commit
f0d6e5ead7
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -6319,6 +6319,7 @@ static void reset_per_request_attributes(struct mg_connection *conn)
     conn->status_code = -1;
     conn->must_close = conn->request_len = conn->throttle = 0;
     conn->request_info.content_length = -1;
+    conn->data_len = 0;
 }
 
 static void close_socket_gracefully(struct mg_connection *conn)