]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/ReplyMimeType.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / acl / ReplyMimeType.h
CommitLineData
5dee515e 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
5dee515e 3 *
bbc27441
AJ
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.
5dee515e 7 */
bbc27441 8
b0dd28ba 9#ifndef SQUID_ACLREPLYMIMETYPE_H
10#define SQUID_ACLREPLYMIMETYPE_H
e1f7507e 11
127dce76 12#include "acl/Data.h"
aa28452d 13#include "acl/FilledChecklist.h"
127dce76 14#include "acl/ReplyHeaderStrategy.h"
e1f7507e 15
4eac3407
CT
16/* partial specialisation */
17
f75662c9 18template <>
e1f7507e 19inline int
4eac3407 20ACLReplyHeaderStrategy<Http::HdrType::CONTENT_TYPE>::match(ACLData<char const *> * &data, ACLFilledChecklist *checklist)
62e76326 21{
789217a2 22 char const *theHeader = checklist->reply->header.getStr(Http::HdrType::CONTENT_TYPE);
62e76326 23
b0dd28ba 24 if (NULL == theHeader)
25 theHeader = "";
62e76326 26
b0dd28ba 27 return data->match(theHeader);
28}
5dee515e 29
b0dd28ba 30#endif /* SQUID_ACLREPLYMIMETYPE_H */
f53969cc 31