]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mime_header.cc
2 * Copyright (C) 1996-2023 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 /* DEBUG: section 25 MiME Header Parsing */
12 #include "debug/Stream.h"
13 #include "mime_header.h"
14 #include "sbuf/SBuf.h"
17 headersEnd(const char *mime
, size_t l
, bool &containsObsFold
)
21 containsObsFold
= false;
23 while (e
< l
&& state
< 3) {
36 else if ('\n' == mime
[e
])
38 else if (' ' == mime
[e
] || '\t' == mime
[e
]) {
39 containsObsFold
= true;
68 headersEnd(const SBuf
&buf
, bool &containsObsFold
)
70 return headersEnd(buf
.rawContent(), buf
.length(), containsObsFold
);