From: wessels <> Date: Mon, 25 Aug 1997 05:13:26 +0000 (+0000) Subject: return HTTP_FORBIDDEN, not HTTP_UNAUTHORIZED. If we use UNAUTH, then X-Git-Tag: SQUID_3_0_PRE1~4827 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d29896832efbbc536cb3df01a94305f379f24d2a;p=thirdparty%2Fsquid.git return HTTP_FORBIDDEN, not HTTP_UNAUTHORIZED. If we use UNAUTH, then the browser wants us to authenticate. --- diff --git a/src/client_side.cc b/src/client_side.cc index b284ef9724..2e5015eddb 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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; }