diff --git a/build/src/mongoose.c b/build/src/mongoose.c index cdc9ae18d7da569a1c00c075354e9e6c461ea52c..e07bb14cab9d1f0f097e348f5c15b17c96340140 100644 --- a/build/src/mongoose.c +++ b/build/src/mongoose.c @@ -3649,6 +3649,7 @@ static int getreq(struct mg_connection *conn, char *ebuf, size_t ebuf_len) { // The reason for treating GET and POST/PUT differently is that libraries // like jquery do not set Content-Length in GET requests, and we don't // want mg_read() to hang waiting until socket is timed out. + // See https://github.com/cesanta/mongoose/pull/121 for more. conn->content_len = INT64_MAX; if (!mg_strcasecmp(conn->request_info.request_method, "GET")) { conn->content_len = 0; diff --git a/mongoose.c b/mongoose.c index 02fb9f8e2d5b5416887f56cacda426de198933bb..fd647c86c04a2685a61519451f883e36da7a82ba 100644 --- a/mongoose.c +++ b/mongoose.c @@ -4960,6 +4960,7 @@ static int getreq(struct mg_connection *conn, char *ebuf, size_t ebuf_len) { // The reason for treating GET and POST/PUT differently is that libraries // like jquery do not set Content-Length in GET requests, and we don't // want mg_read() to hang waiting until socket is timed out. + // See https://github.com/cesanta/mongoose/pull/121 for more. conn->content_len = INT64_MAX; if (!mg_strcasecmp(conn->request_info.request_method, "GET")) { conn->content_len = 0;