Преглед изворни кода

Merge pull request #49 from NetDevLtd/reset-request

Reset data from previous response for new request
bel2125 пре 10 година
родитељ
комит
f0d6e5ead7
1 измењених фајлова са 1 додато и 0 уклоњено
  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)