From d376d32843f9fce99c2c835aa62e60043594ece8 Mon Sep 17 00:00:00 2001 From: Greg Ames Date: Wed, 31 Oct 2001 20:18:56 +0000 Subject: [PATCH] return the actual number of bytes read when we're in "read a line" mode and it looks like the line may never end. This lets ap_getline determine whether there's excessive bytes or not, depending on the size of its caller's buffers. If the buffer can accomodate more bytes, ap_getline will continue to read. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91713 13f79535-47bb-0310-9956-ffa450edef68 --- server/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core.c b/server/core.c index dbcddafc8c..36c207079a 100644 --- a/server/core.c +++ b/server/core.c @@ -2939,7 +2939,7 @@ static int core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mod /* We didn't find an APR_ASCII_LF within the predefined maximum * line length. */ if (len >= HUGE_STRING_LEN) { - return -1; + return len; } } -- 2.40.0