From eedfedd13b52ddf3e0cd069a13695b05618b41ed Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Tue, 1 Oct 2013 19:09:29 +0100 Subject: [PATCH] Added reference to a relevant pull request in getreq() comment --- build/src/mongoose.c | 1 + mongoose.c | 1 + 2 files changed, 2 insertions(+) diff --git a/build/src/mongoose.c b/build/src/mongoose.c index cdc9ae18d..e07bb14ca 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 02fb9f8e2..fd647c86c 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; -- GitLab