Code

Again still PoC, but reworked w/o CherryPy
[nagixsc.git] / nagixsc_conf2http.py
index 4200af20a6f0571c44c4528604c87b2342cf6570..d5200e09e34102b91729145eeebb8d4988827a23 100755 (executable)
@@ -39,7 +39,7 @@ class Conf2HTTPHandler(BaseHTTPServer.BaseHTTPRequestHandler):
                                raise Exception
                except:
                        self.send_response(401)
-                       self.send_header('WWW-Authenticate', 'Basic realm="Nag(ix)SC"')
+                       self.send_header('WWW-Authenticate', 'Basic realm="Nag(ix)SC Pull"')
                        self.send_header('Content-Type', 'text/plain')
                        self.end_headers()
                        self.wfile.write('Sorry! No action without login!')