diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-05-31 18:09:09 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-05-31 18:09:09 +0000 |
commit | 26a983b467a350f183d860b659c152ce9024030f (patch) | |
tree | b2b48fb8fc6bc0427b4365470c3a11cf86194b1c | |
parent | f548ce72b241f9c2dc4dfe930f65b9ae3a844cd4 (diff) | |
download | tinyproxy-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.
-rw-r--r-- | src/reqs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |