Commit a5ce87c3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't log the terminating NUL on response proto field.


git-svn-id: http://www.varnish-cache.org/svn/trunk@126 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent df8e27a8
......@@ -67,8 +67,8 @@ HttpdAnalyze(struct sess *sp, int rr)
p = sp->rcv;
while (!isspace(*p))
p++;
*p++ = '\0';
VSLR(SLT_Protocol, sp->fd, sp->http.proto, p);
*p++ = '\0';
/* Next find the status */
while (isspace(*p))
......@@ -166,6 +166,7 @@ http_read_f(int fd, short event, void *arg)
break;
}
sp->hdr_end = ++p - sp->rcv;
event_del(sp->rd_e);
sp->sesscb(sp);
}
......@@ -217,5 +218,4 @@ HttpdBuildSbuf(int resp, int filter, struct sbuf *sb, struct sess *sp)
#undef HTTPH
sbuf_cat(sb, "\r\n");
sbuf_finish(sb);
}
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