]> err.no Git - varnish/commitdiff
Don't log the terminating NUL on response proto field.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Apr 2006 09:08:13 +0000 (09:08 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Apr 2006 09:08:13 +0000 (09:08 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@126 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_httpd.c

index 91b3f2c528a1c2f25ef16316cc8dcef87958af98..6e9ff74da3873933db5d044370899a08745ca818 100644 (file)
@@ -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);
-
 }