]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/SquidError.cc
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / acl / SquidError.cc
CommitLineData
3248e962 1/*
f70aedc4 2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
3248e962
CT
3 *
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.
7 */
8
9#include "squid.h"
4eac3407 10#include "acl/FilledChecklist.h"
3248e962
CT
11#include "acl/SquidError.h"
12#include "HttpRequest.h"
13
14int
4eac3407 15ACLSquidErrorStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist)
3248e962
CT
16{
17 if (checklist->requestErrorType != ERR_MAX)
18 return data->match(checklist->requestErrorType);
19 else if (checklist->request)
83b053a0 20 return data->match(checklist->request->error.category);
3248e962
CT
21 return 0;
22}
23