From d29896832efbbc536cb3df01a94305f379f24d2a Mon Sep 17 00:00:00 2001 From: wessels <> Date: Mon, 25 Aug 1997 05:13:26 +0000 Subject: [PATCH] return HTTP_FORBIDDEN, not HTTP_UNAUTHORIZED. If we use UNAUTH, then the browser wants us to authenticate. --- src/client_side.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; } -- 2.47.2