HttpHeaderTools.cc:359 的内容:
/* Parses a quoted-string field (RFC 2616 section 2.2), complains if
* something went wrong, returns non-zero on success.
* start should point at the first ".
* RC TODO: This is too looose. We should honour the BNF and exclude CTL's
*/
int
httpHeaderParseQuotedString (const char *start, String *val)
{
const char *end, *pos;
val->clean();
assert (*start == '"');
pos = start + 1;
while (1) {
if (!(end = index (pos,'"'))) {
debugs(66, 2, "failed to parse a quoted-string header field near '" << start << "'");
return 0;
}