From: Roy T. Fielding Date: Thu, 26 Aug 1999 15:17:10 +0000 (+0000) Subject: FIXME: These changes are just errors from bad merges in the past. X-Git-Tag: PRE_APR_CHANGES~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bdb3089962f984f7016e29c61d90b548975f983;p=apache FIXME: These changes are just errors from bad merges in the past. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83773 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 531047f06c..109e948a71 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1545,6 +1545,9 @@ API_EXPORT(void) ap_send_http_header(request_rec *r) r->sent_bodyct = 1; return; } + else { + fixup_vary(r); + } /* * Now that we are ready to send a response, we need to combine the two @@ -1565,9 +1568,6 @@ API_EXPORT(void) ap_send_http_header(request_rec *r) r->proto_num = HTTP_VERSION(1,0); ap_table_set(r->subprocess_env, "force-response-1.0", "1"); } - else { - fixup_vary(r); - } ap_basic_http_header(r); diff --git a/server/config.c b/server/config.c index 9073d3576f..8bd9107949 100644 --- a/server/config.c +++ b/server/config.c @@ -1088,28 +1088,27 @@ int ap_parse_htaccess(void **result, request_rec *r, int override, /* loop through the access names and find the first one */ - while (access_name[0]) { - filename = ap_make_full_path(r->pool, d, - ap_getword_conf(r->pool, &access_name)); - - if ((f = ap_pcfg_openfile(r->pool, filename)) != NULL) { - - dc = ap_create_per_dir_config(r->pool); + while (!f && access_name[0]) { + char * w = ap_getword_conf(r->pool, &access_name); + filename = ap_make_full_path(r->pool, d, w); + f = ap_pcfg_openfile(r->pool, filename); + } + if (f) { + dc = ap_create_per_dir_config(r->pool); - parms.config_file = f; + parms.config_file = f; - errmsg = ap_srm_command_loop(&parms, dc); + errmsg = ap_srm_command_loop(&parms, dc); - ap_cfg_closefile(f); + ap_cfg_closefile(f); - if (errmsg) { - ap_log_rerror(APLOG_MARK, APLOG_ALERT|APLOG_NOERRNO, r, - "%s: %s", filename, errmsg); - return HTTP_INTERNAL_SERVER_ERROR; - } - *result = dc; - break; - } + if (errmsg) { + ap_log_rerror(APLOG_MARK, APLOG_ALERT|APLOG_NOERRNO, r, + "%s: %s", filename, errmsg); + return HTTP_INTERNAL_SERVER_ERROR; + } + *result = dc; + } else if (errno != ENOENT && errno != ENOTDIR) { ap_log_rerror(APLOG_MARK, APLOG_CRIT, r, "%s pcfg_openfile: unable to check htaccess file, "