Beispiel #1
0
    def sendAuthorization(self):
        """
        Send authorization prompt
        """

        self.send_response(401, 'Authorization Required')
        self.send_header('WWW-Authenticate', 'Basic realm="Renderfarm login"')

        fname = os.path.join(self.server.getSiteRoot(), 'authfail.html')
        FileHandler.send_file(self, fname)