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-Tag: 2.0.29~104 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f1a15140d38411133b3c13786a1f5cd3f6d6cdc;p=thirdparty%2Fapache%2Fhttpd.git 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 d9bedaec6fa..3c8e055ba0f 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 3a9378f81b9..2ba05b92f13 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.