]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/RequestMimeType.h
2 * Copyright (C) 1996-2022 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.
9 #ifndef SQUID_ACLREQUESTMIMETYPE_H
10 #define SQUID_ACLREQUESTMIMETYPE_H
13 #include "acl/FilledChecklist.h"
14 #include "acl/RequestHeaderStrategy.h"
16 /* partial specialisation */
20 ACLRequestHeaderStrategy
<Http::HdrType::CONTENT_TYPE
>::match (ACLData
<char const *> * &data
, ACLFilledChecklist
*checklist
)
22 char const *theHeader
= checklist
->request
->header
.getStr(Http::HdrType::CONTENT_TYPE
);
24 if (nullptr == theHeader
)
27 return data
->match(theHeader
);
30 #endif /* SQUID_ACLREQUESTMIMETYPE_H */