Changes with Apache 2.0.43
+ *) Make sure the contents of the WWW-Authenticate header is
+ passed on a 4xx error by proxy. Previously all headers
+ were dropped, resulting in the browser being unable to
+ authenticate. [Dr Richard Reiner <rreiner@fscinternet.com>,
+ Richard Danielli <rdanielli@fscinternet.com>, Graham Wiseman
+ <gwiseman@fscinternet.com>, David Henderson
+ <dhenderson@fscinternet.com>]
+
*) Make mod_cache's CacheMaxStreamingBuffer directive work
properly for virtual hosts that override server-wide mod_cache
setttings. [Matthieu Estrade <estrade-m@ifrance.com>]
}
}
+ if ((r->status == 401) && (conf->error_override != 0)) {
+ const char *buf;
+ const char *wa = "WWW-Authenticate";
+ if (buf = apr_table_get(r->headers_out, wa)) {
+ apr_table_set(r->err_headers_out, wa, buf);
+ } else {
+ ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+ "proxy: origin server sent 401 without w-a header");
+ }
+ }
+
r->sent_bodyct = 1;
/* Is it an HTTP/0.9 response? If so, send the extra data */
if (backasswards) {
*/
int status = r->status;
r->status = HTTP_OK;
+ ap_discard_request_body(rp);
return status;
}
} else