gmyth-stream/server/0.3/lib/request_handler.py
branchtrunk
changeset 827 30368d31696e
parent 815 7f290a3a34b1
child 828 2061bf4c30c7
     1.1 --- a/gmyth-stream/server/0.3/lib/request_handler.py	Tue Aug 21 16:04:44 2007 +0100
     1.2 +++ b/gmyth-stream/server/0.3/lib/request_handler.py	Tue Aug 28 08:16:13 2007 +0100
     1.3 @@ -355,8 +355,12 @@
     1.4      # serve_file_info()
     1.5  
     1.6      def serve_stream(self, body):
     1.7 -        filename = self.query.get("file", None)[0]
     1.8 +	args = self.query.get("file", None)
     1.9 +	if not args:
    1.10 +	    self.send_error(404, "File not found")
    1.11 +	    return
    1.12  
    1.13 +        filename = args[0];	
    1.14          if not filename:
    1.15              self.send_error(404, "File not found")
    1.16              return