You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2021/04/30 12:40:54 UTC
svn commit: r1889327 - /httpd/httpd/trunk/modules/filters/mod_request.c
Author: jailletc36
Date: Fri Apr 30 12:40:54 2021
New Revision: 1889327
URL: http://svn.apache.org/viewvc?rev=1889327&view=rev
Log:
Fix a comment (missing '_' in 'keep_body')
While at it, fix some space related style issues and a doxygen like comment.
Modified:
httpd/httpd/trunk/modules/filters/mod_request.c
Modified: httpd/httpd/trunk/modules/filters/mod_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_request.c?rev=1889327&r1=1889326&r2=1889327&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_request.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_request.c Fri Apr 30 12:40:54 2021
@@ -73,7 +73,6 @@ static apr_status_t keep_body_filter(ap_
apr_bucket *bucket;
apr_off_t len = 0;
-
if (!ctx) {
const char *lenp;
request_dir_conf *dconf = ap_get_module_config(f->r->per_dir_config,
@@ -119,7 +118,6 @@ static apr_status_t keep_body_filter(ap_
f->r->kept_body = apr_brigade_create(f->r->pool, f->r->connection->bucket_alloc);
ctx->remaining = dconf->keep_body;
-
}
/* get the brigade from upstream, and read it in to get its length */
@@ -262,8 +260,8 @@ static apr_status_t kept_body_filter(ap_
ctx->remaining -= readbytes;
ctx->offset += readbytes;
- return APR_SUCCESS;
+ return APR_SUCCESS;
}
/**
@@ -309,18 +307,18 @@ static void ap_request_insert_filter(req
NULL, r, r->connection);
}
}
-
}
-/**
- * Remove the kept_body and keep body filters from this specific request.
+/*
+ * Remove the kept_body and keep_body filters from this specific request.
*/
-static void ap_request_remove_filter(request_rec * r)
+static void ap_request_remove_filter(request_rec *r)
{
- ap_filter_t * f = r->input_filters;
+ ap_filter_t *f = r->input_filters;
+
while (f) {
if (f->frec->filter_func.in_func == kept_body_filter ||
- f->frec->filter_func.in_func == keep_body_filter) {
+ f->frec->filter_func.in_func == keep_body_filter) {
ap_remove_input_filter(f);
}
f = f->next;