this is friendlier to callers and r->content_type is const char *
too so it isn't harmful
this fixes a fatal compile error with AIX+xlc
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94051
13f79535-47bb-0310-9956-
ffa450edef68
/**
*
*/
-AP_DECLARE(void) ap_rset_content_type(char *str, request_rec *r);
+AP_DECLARE(void) ap_rset_content_type(const char *str, request_rec *r);
/* Hmmm... could macrofy these for now, and maybe forever, though the
* definitions of the macros would get a whole lot hairier.
apr_array_pstrcat(r->pool, varies, ','));
}
}
-AP_DECLARE(void) ap_rset_content_type(char *ct, request_rec *r)
+AP_DECLARE(void) ap_rset_content_type(const char *ct, request_rec *r)
{
r->content_type = ct;