Commit 7fa24b15 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

React to both NL and CR in VLU



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3383 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent cf3f54de
......@@ -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