summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-31 18:09:09 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-05-31 18:09:09 +0000
commit26a983b467a350f183d860b659c152ce9024030f (patch)
treeb2b48fb8fc6bc0427b4365470c3a11cf86194b1c /src
parentf548ce72b241f9c2dc4dfe930f65b9ae3a844cd4 (diff)
downloadtinyproxy-26a983b467a350f183d860b659c152ce9024030f.tar.gz
tinyproxy-26a983b467a350f183d860b659c152ce9024030f.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/reqs.c4
1 files changed, 2 insertions, 2 deletions
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;