mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
First commit to introduce accessor function to set r->content_type..
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -386,7 +386,7 @@ AP_DECLARE(void) ap_internal_fast_redirect(request_rec *rr, request_rec *r)
|
||||
r->args = rr->args;
|
||||
r->finfo = rr->finfo;
|
||||
r->handler = rr->handler;
|
||||
r->content_type = rr->content_type;
|
||||
ap_rset_content_type(rr->content_type, r);
|
||||
r->content_encoding = rr->content_encoding;
|
||||
r->content_languages = rr->content_languages;
|
||||
r->per_dir_config = rr->per_dir_config;
|
||||
@@ -428,7 +428,7 @@ AP_DECLARE(void) ap_internal_redirect_handler(const char *new_uri, request_rec *
|
||||
int access_status;
|
||||
request_rec *new = internal_internal_redirect(new_uri, r);
|
||||
if (r->handler)
|
||||
new->content_type = r->content_type;
|
||||
ap_rset_content_type(r->content_type, new);
|
||||
access_status = ap_process_request_internal(new);
|
||||
if (access_status == OK) {
|
||||
if ((access_status = ap_invoke_handler(new)) != 0) {
|
||||
|
Reference in New Issue
Block a user