string for the status code as found in RFC2616.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2609
d4fa192b-c00b-0410-8231-
f00ffab90ce4
if (vctyp(*p, C_CTL))
return (400);
hp->hd[h3].e = p;
+ } else {
+ hp->hd[h3].b = p;
+ hp->hd[h3].e = p;
}
/* Skip CRLF */
hp->status =
strtoul(hp->hd[HTTP_HDR_STATUS].b, NULL /* XXX */, 10);
}
+ if (!Tlen(hp->hd[HTTP_HDR_RESPONSE])) {
+ /* Backend didn't send a response string, use the standard */
+ hp->hd[HTTP_HDR_RESPONSE].b =
+ TRUST_ME(http_StatusMessage(hp->status));
+ hp->hd[HTTP_HDR_RESPONSE].e =
+ strchr(hp->hd[HTTP_HDR_RESPONSE].b, '\0');
+ }
return (i);
}