From: Ian Holsman Date: Sun, 18 Nov 2001 02:57:12 +0000 (+0000) Subject: change the signature of ap_custom_response() to use a X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ca335758343dfce240257c9df808c30bb008be9;p=apache change the signature of ap_custom_response() to use a "const char *" instead of a "char *". PR: 8791 Submitted by: Kurt Brown kurtb149@yahoo.com Reviewed by: Ian Holsman git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92024 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_core.h b/include/http_core.h index d9bedaec6f..3c8e055ba0 100644 --- a/include/http_core.h +++ b/include/http_core.h @@ -252,9 +252,8 @@ AP_DECLARE(size_t) ap_get_limit_xml_body(const request_rec *r); * @param status The status for which the custom response should be used * @param string The custom response. This can be a static string, a file * or a URL - * @deffunc void ap_custom_response(request_rec *r, int status, char *string) */ -AP_DECLARE(void) ap_custom_response(request_rec *r, int status, char *string); +AP_DECLARE(void) ap_custom_response(request_rec *r, int status, const char *string); /** * Check for a definition from the server command line diff --git a/server/core.c b/server/core.c index 3a9378f81b..2ba05b92f1 100644 --- a/server/core.c +++ b/server/core.c @@ -943,7 +943,7 @@ static const char *set_document_root(cmd_parms *cmd, void *dummy, return NULL; } -AP_DECLARE(void) ap_custom_response(request_rec *r, int status, char *string) +AP_DECLARE(void) ap_custom_response(request_rec *r, int status, const char *string) { core_dir_config *conf = ap_get_module_config(r->per_dir_config, &core_module); @@ -3076,6 +3076,7 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b) } } } + /* Completed iterating over the brigades, now determine if we want * to buffer the brigade or send the brigade out on the network.