diff -r 4ac83e3152c0 -r f1da4fbe667e gmyth-stream/server/0.3/lib/request_handler.py --- a/gmyth-stream/server/0.3/lib/request_handler.py Sat Jun 30 00:27:43 2007 +0100 +++ b/gmyth-stream/server/0.3/lib/request_handler.py Mon Jul 02 08:33:58 2007 +0100 @@ -336,8 +336,10 @@ self.send_response(200) self.send_header("Content-Type", obj.get_mimetype()) - self.send_header("Transfer-Encoding", "chunked") - self.send_header("Cache-Control", "no-cache") + + if (obj.name == "gmencoder"): + self.send_header("Transfer-Encoding", "chunked") + self.send_header("Connection", "close") self.end_headers()