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

Strip trailing whitespace on header lines from the stored result.



git-svn-id: http://www.varnish-cache.org/svn/trunk@3205 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 014d7705
......@@ -379,7 +379,6 @@ http_dissect_hdrs(struct worker *w, struct http *hp, int fd, char *p, txt t)
r = q + 1;
if (q > p && q[-1] == '\r')
q--;
*q = '\0';
if (p == q)
break;
......@@ -388,6 +387,10 @@ http_dissect_hdrs(struct worker *w, struct http *hp, int fd, char *p, txt t)
p[2] == '-')
hp->conds = 1;
while (q > p && vct_issp(q[-1]))
q--;
*q = '\0';
if (hp->nhd < HTTP_HDR_MAX) {
hp->hdf[hp->nhd] = 0;
hp->hd[hp->nhd].b = p;
......
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