[sheepdog] [PATCH v2 05/10] http: usr CRLF for endline of http header
MORITA Kazutaka
morita.kazutaka at gmail.com
Thu Oct 31 18:08:08 CET 2013
From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/http/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sheep/http/http.c b/sheep/http/http.c
index a26ecb2..a2cace4 100644
--- a/sheep/http/http.c
+++ b/sheep/http/http.c
@@ -179,7 +179,7 @@ static void http_response_header(struct http_request *req, int status)
return;
req->status = status;
- http_request_writef(req, "Status: %s\n", strstatus(status));
+ http_request_writef(req, "Status: %s\r\n", strstatus(status));
http_request_writes(req, "Content-type: text/plain;\r\n\r\n");
}
--
1.8.1.2
More information about the sheepdog
mailing list