Commit 05d1a4a2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix object length double accounting in chunked fetch


git-svn-id: http://www.varnish-cache.org/svn/trunk@272 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4d24303c
......@@ -161,7 +161,6 @@ fetch_chunked(struct worker *w, struct sess *sp, int fd, struct http *hp)
st->len += e - b;
v -= e - b;
u -= e - b;
sp->obj->len += e - b;
}
while (v > 0) {
i = read(fd, p, v);
......@@ -170,7 +169,6 @@ fetch_chunked(struct worker *w, struct sess *sp, int fd, struct http *hp)
v -= i;
u -= i;
p += i;
sp->obj->len += i;
}
}
}
......
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