From 26a983b467a350f183d860b659c152ce9024030f Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Fri, 31 May 2002 18:09:09 +0000 Subject: (process_server_headers): Since we're stripping off the carriage return and newline, we need to add them back on when sending the response header to the client. --- src/reqs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/reqs.c b/src/reqs.c index 6fe58fa..9f3398e 100644 --- a/src/reqs.c +++ b/src/reqs.c @@ -1,4 +1,4 @@ -/* $Id: reqs.c,v 1.80 2002-05-29 18:11:57 rjkaes Exp $ +/* $Id: reqs.c,v 1.81 2002-05-31 18:09:09 rjkaes Exp $ * * This is where all the work in tinyproxy is actually done. Incoming * connections have a new child created for them. The child then @@ -917,7 +917,7 @@ process_server_headers(struct conn_s *connptr) } /* Send the saved response line first */ - ret = safe_write(connptr->client_fd, response_line, strlen(response_line)); + ret = write_message(connptr->client_fd, "%s\r\n", response_line); safefree(response_line); if (ret < 0) goto ERROR_EXIT; -- cgit v1.2.3