]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/SquidError.cc
2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
10 #include "acl/FilledChecklist.h"
11 #include "acl/SquidError.h"
12 #include "HttpRequest.h"
15 ACLSquidErrorStrategy::match (ACLData
<MatchType
> * &data
, ACLFilledChecklist
*checklist
)
17 if (checklist
->requestErrorType
!= ERR_MAX
)
18 return data
->match(checklist
->requestErrorType
);
19 else if (checklist
->request
)
20 return data
->match(checklist
->request
->error
.category
);