summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBill Stoddard <stoddard@apache.org>2002-03-20 18:44:13 +0100
committerBill Stoddard <stoddard@apache.org>2002-03-20 18:44:13 +0100
commit76bef9981fcb97a20bb07aa0cd121363b420ac38 (patch)
tree74409e990730517c72968b49b4cedd7ebee43116 /include
parentCommit 1 of 2 to: (diff)
downloadapache2-76bef9981fcb97a20bb07aa0cd121363b420ac38.tar.xz
apache2-76bef9981fcb97a20bb07aa0cd121363b420ac38.zip
Commit 2 of 2 to:
1. rename ap_rset_content_type to ap_set_content_type 2. reverse the arguments to aligh with ap_set_content_length git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/http_protocol.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/include/http_protocol.h b/include/http_protocol.h
index 5e85b11155..87f823830d 100644
--- a/include/http_protocol.h
+++ b/include/http_protocol.h
@@ -321,9 +321,15 @@ AP_DECLARE(void) ap_method_list_remove(ap_method_list_t *l,
AP_DECLARE(void) ap_clear_method_list(ap_method_list_t *l);
/**
- *
+ * Set the content type for this request (r->content_type).
+ * Note:
+ * This function must be called to set r->content_type in order
+ * for the AddOutputFilterByType directive to work correctly.
+ * @param r The current request
+ * @param length The new content type
+ * @deffunc void ap_set_content_type(request_rec *r, const char* ct)
*/
-AP_DECLARE(void) ap_rset_content_type(const char *str, request_rec *r);
+AP_DECLARE(void) ap_set_content_type(request_rec *r, const char *ct);
/* Hmmm... could macrofy these for now, and maybe forever, though the
* definitions of the macros would get a whole lot hairier.