correct message for wrong authentication
This commit is contained in:
parent
a42075fa78
commit
7fd2e29632
1 changed files with 2 additions and 2 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue