Pārlūkot izejas kodu

Removed bogus comment

Sergey Lyubka 12 gadi atpakaļ
vecāks
revīzija
137d6484e2
1 mainītis faili ar 0 papildinājumiem un 4 dzēšanām
  1. 0 4
      mongoose.c

+ 0 - 4
mongoose.c

@@ -4895,10 +4895,6 @@ static int getreq(struct mg_connection *conn, char *ebuf, size_t ebuf_len) {
                !mg_strcasecmp(conn->request_info.request_method, "PUT")) {
                !mg_strcasecmp(conn->request_info.request_method, "PUT")) {
       conn->content_len = -1;
       conn->content_len = -1;
     } else {
     } else {
-      // Content-Length is not set. Set content_len to maximum possible
-      // value, instructing mg_read() to read data until socket is closed.
-      // Message boundary is not known in this case, therefore this
-      // connection must be closed after
       conn->content_len = 0;
       conn->content_len = 0;
     }
     }
     conn->birth_time = time(NULL);
     conn->birth_time = time(NULL);