correct message for wrong authentication

This commit is contained in:
AleaJactaEst 2018-02-13 22:31:13 +01:00
parent a42075fa78
commit 7fd2e29632

View file

@ -394,8 +394,8 @@ class ManageHttpRequest(http.server.SimpleHTTPRequestHandler):
"""
logging.debug('post recieved : %s' % self.path)
if not self.check_authentication():
self.send_error(400, 'Bad authentication')
logging.error("Bad authentication")
self.send_error(403, 'Wrong authentication')
logging.error("Wrong authentication")
elif self.path == '/START':
self._send_command("START")
elif self.path == '/STOP':