]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
return HTTP_FORBIDDEN, not HTTP_UNAUTHORIZED. If we use UNAUTH, then
authorwessels <>
Mon, 25 Aug 1997 05:13:26 +0000 (05:13 +0000)
committerwessels <>
Mon, 25 Aug 1997 05:13:26 +0000 (05:13 +0000)
the browser wants us to authenticate.

src/client_side.cc

index b284ef9724e4745cfe81a577baa3aa78ad65de83..2e5015eddbcd1f4a09be6e393afb4b769243845b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.121 1997/08/10 04:42:35 wessels Exp $
+ * $Id: client_side.cc,v 1.122 1997/08/24 23:13:26 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -150,7 +150,9 @@ clientAccessCheckDone(int answer, void *data)
            err->http_status = HTTP_MOVED_TEMPORARILY;
            err->redirect_url = xstrdup(redirectUrl);
        } else {
-           err->http_status = HTTP_UNAUTHORIZED;
+           /* NOTE: don't use HTTP_UNAUTHORIZED because then the
+              stupid browser wants us to authenticate */
+           err->http_status = HTTP_FORBIDDEN;
        }
        errorSend(fd, err);
     }
@@ -548,7 +550,7 @@ clientPurgeRequest(clientHttpRequest * http)
        err->type = ERR_ACCESS_DENIED;
        err->request = requestLink(http->request);
        err->src_addr = http->conn->peer.sin_addr;
-       err->http_status = HTTP_UNAUTHORIZED;
+       err->http_status = HTTP_FORBIDDEN;
        errorSend(fd, err);
        return;
     }