1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

This is a fix that went into v1.3 quite a while back, but not into v2.0.

It sorts out the problem when a password protected reverse proxy URL
sends a Proxy-Authenticate to a browser instead of a WWW-Authenticate.

This patch covers the changes to the httpd-2.0 tree.

Submitted by:	Graham Leggett
Reviewed by:	Chuck Murcko


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88527 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chuck Murcko
2001-03-16 07:28:08 +00:00
parent 448a3a6d3b
commit 93463cfc17
7 changed files with 27 additions and 14 deletions

View File

@@ -135,7 +135,7 @@ AP_DECLARE(void) ap_die(int type, request_rec *r)
* about proxy authentication. They treat it like normal auth, and then
* we tweak the status.
*/
if (r->status == HTTP_UNAUTHORIZED && r->proxyreq) {
if (HTTP_UNAUTHORIZED == r->status && PROXYREQ_PROXY == r->proxyreq) {
r->status = HTTP_PROXY_AUTHENTICATION_REQUIRED;
}