Commit c60ff636 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Style & whitespace


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2124 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent a828a63e
......@@ -291,10 +291,12 @@ Fetch(struct sess *sp)
return (__LINE__);
WRK_Reset(w, &vc->fd);
http_Write(w, hp, 0);
/* If a POST request was passed to fetch, we must send
* any pipelined bytes to the backend as well */
if(http_GetHdr(sp->http, H_Content_Length, &ptr)) {
/*
* If a POST request was passed to fetch, we must send any
* pipelined bytes to the backend as well
*/
if (http_GetHdr(sp->http, H_Content_Length, &ptr)) {
endp = ptr + strlen(ptr);
content_length = (int)strtol(ptr, &endp, 10);
content_written = 0;
......@@ -310,7 +312,7 @@ Fetch(struct sess *sp)
free(p);
}
}
if (WRK_Flush(w)) {
VBE_UpdateHealth(sp, vc, -1);
VBE_ClosedFd(sp->wrk, vc);
......
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