diff -r e711a64ba03d -r e2baa6947dbf gmyth-stream/server/0.3/lib/request_handler.py --- a/gmyth-stream/server/0.3/lib/request_handler.py Thu Aug 23 20:24:11 2007 +0100 +++ b/gmyth-stream/server/0.3/lib/request_handler.py Wed Aug 29 14:29:24 2007 +0100 @@ -360,13 +360,14 @@ self.send_error(404, "File not found") return - filename = args[0]; + filename = args[0]; if not filename: self.send_error(404, "File not found") return #Only stream files on .transcode dir - filename = os.path.join (utils.config.get_transcoded_location(), os.path.basename(filename)) + filename = os.path.join (utils.config.get_transcoded_location(), + os.path.basename(filename)) self.log.error("Stream file: %s" % filename) if not os.path.exists (filename): self.send_error(404, "File not found") @@ -377,7 +378,6 @@ self.send_header("Content-Type", mimetypes.guess_type(filename)[0]) self.send_header("Cache-Control","no-cache") self.send_header("Content-Length", size) - #self.send_header("Connection", "close") self.end_headers() media = open(filename) @@ -429,7 +429,6 @@ if (obj.name == "gmencoder"): self.send_header("Transfer-Encoding", "chunked") - #self.send_header("Connection", "close") self.end_headers() if body: