]> err.no Git - varnish/commitdiff
Fix formatting of responses.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 21 Jul 2006 16:06:07 +0000 (16:06 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 21 Jul 2006 16:06:07 +0000 (16:06 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@541 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index 2eaf293fdce098fc378c127e6028b991c7711ad0..9315f73cc9af86a0612d5b0690a9e0b2b1faaa39 100644 (file)
@@ -622,9 +622,9 @@ http_Write(struct worker *w, struct http *hp, int resp)
 
        if (resp) {
                assert(hp->hd[HTTP_HDR_STATUS].b != NULL);
-               WRK_WriteH(w, &hp->hd[HTTP_HDR_PROTO], "\r\n");
+               WRK_WriteH(w, &hp->hd[HTTP_HDR_PROTO], " ");
                WRK_WriteH(w, &hp->hd[HTTP_HDR_STATUS], " ");
-               WRK_WriteH(w, &hp->hd[HTTP_HDR_RESPONSE], " ");
+               WRK_WriteH(w, &hp->hd[HTTP_HDR_RESPONSE], "\r\n");
        } else {
                assert(hp->hd[HTTP_HDR_URL].b != NULL);
                WRK_WriteH(w, &hp->hd[HTTP_HDR_REQ], " ");