/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include "profiler/Profiler.h"
size_t
-headersEnd(const char *mime, size_t l)
+headersEnd(const char *mime, size_t l, bool &containsObsFold)
{
size_t e = 0;
int state = 1;
+ containsObsFold = false;
PROF_start(headersEnd);
state = 2;
else if ('\n' == mime[e])
state = 3;
- else
+ else if (' ' == mime[e] || '\t' == mime[e]) {
+ containsObsFold = true;
+ state = 0;
+ } else
state = 0;
break;
return 0;
}
+