HTTPServer self.send_response fails

Hi!
 
I'm trying to get HLS to work on my Samsung C-series bluray. And it seem his performs HTTP HEAD requests which the servers doesn't seem to respond to.
 
I then got a tip on how to make a local HTTP Server which could handle the HEAD request.
 
However I get a problem with self.send_response or self.send_error. They fail with 

I/O error(9): Bad file descriptor

 
I can send text etc though which makes it so strange - but I'm really new to Python and Plex Channel Development.
 
And yes I have elvevated mode

        PlexPluginCodePolicy
        Elevated

 
Part of my code
 

        def do_GET(self):
                Log("Got a Get %s" % self.path[1:])
                self.send_response(200) 
                self.send_header('Content-Type', 'application/vnd.apple.mpegurl')
                self.end_headers()

 
So my server receives the request. If I catch the exception self.send_header does work. Also self.wfile.write if I do that. But it seems the response is special in some way...
 
Any help would be greatly appreciated!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.