Commit 3aa3d029 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r3383: React to both NL and CR in VLU



git-svn-id: http://www.varnish-cache.org/svn/branches/2.0@3604 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c7159018
......@@ -87,8 +87,11 @@ LineUpProcess(struct vlu *l)
l->buf[l->bufp] = '\0';
for (p = l->buf; *p != '\0'; p = q) {
q = strchr(p, '\n');
if (q == NULL)
/* Find first CR or NL */
for (q = p; *q != '\0'; q++)
if (*q == '\n' || *q == '\r')
break;
if (*q == '\0')
break;
*q++ = '\0';
i = l->func(l->priv, p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment