mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
f3fcb3283f
commit
f679751670
20
daemon.py
20
daemon.py
|
|
@ -254,10 +254,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if self.server.starting_daemon:
|
||||
return
|
||||
if check_bad_path(self.path):
|
||||
calling_ip_address = self.request.getpeername()
|
||||
if calling_ip_address:
|
||||
print('WARN: bad path PROPFIND ' +
|
||||
self.path + ' ' + str(calling_ip_address))
|
||||
print('WARN: bad pathx PROPFIND ' + self.path)
|
||||
http_400(self)
|
||||
return
|
||||
|
||||
|
|
@ -267,10 +264,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if self.server.starting_daemon:
|
||||
return
|
||||
if check_bad_path(self.path):
|
||||
calling_ip_address = self.request.getpeername()
|
||||
if calling_ip_address:
|
||||
print('WARN: bad path PROPFIND ' +
|
||||
self.path + ' ' + str(calling_ip_address))
|
||||
print('WARN: bad path PROPFIND ' + self.path)
|
||||
http_400(self)
|
||||
return
|
||||
|
||||
|
|
@ -280,10 +274,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if self.server.starting_daemon:
|
||||
return
|
||||
if check_bad_path(self.path):
|
||||
calling_ip_address = self.request.getpeername()
|
||||
if calling_ip_address:
|
||||
print('WARN: bad path REPORT ' +
|
||||
self.path + ' ' + str(calling_ip_address))
|
||||
print('WARN: bad path REPORT ' + self.path)
|
||||
http_400(self)
|
||||
return
|
||||
|
||||
|
|
@ -293,10 +284,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if self.server.starting_daemon:
|
||||
return
|
||||
if check_bad_path(self.path):
|
||||
calling_ip_address = self.request.getpeername()
|
||||
if calling_ip_address:
|
||||
print('WARN: bad path DELETE ' +
|
||||
self.path + ' ' + str(calling_ip_address))
|
||||
print('WARN: bad path DELETE ' + self.path)
|
||||
http_400(self)
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -248,10 +248,7 @@ def daemon_http_get(self) -> None:
|
|||
if self.server.starting_daemon:
|
||||
return
|
||||
if check_bad_path(self.path):
|
||||
calling_ip_address = self.request.getpeername()
|
||||
if calling_ip_address:
|
||||
print('WARN: bad path GET ' +
|
||||
self.path + ' ' + str(calling_ip_address))
|
||||
print('WARN: bad path GET ' + self.path)
|
||||
http_400(self)
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -31,10 +31,7 @@ def daemon_http_head(self) -> None:
|
|||
if self.server.starting_daemon:
|
||||
return
|
||||
if check_bad_path(self.path):
|
||||
calling_ip_address = self.request.getpeername()
|
||||
if calling_ip_address:
|
||||
print('WARN: bad path HEAD ' +
|
||||
self.path + ' ' + str(calling_ip_address))
|
||||
print('WARN: bad path HEAD ' + self.path)
|
||||
http_400(self)
|
||||
return
|
||||
|
||||
|
|
|
|||
|
|
@ -161,10 +161,7 @@ def daemon_http_post(self) -> None:
|
|||
if self.server.starting_daemon:
|
||||
return
|
||||
if check_bad_path(self.path):
|
||||
calling_ip_address = self.request.getpeername()
|
||||
if calling_ip_address:
|
||||
print('WARN: bad path POST ' +
|
||||
self.path + ' ' + str(calling_ip_address))
|
||||
print('WARN: bad path POST ' + self.path)
|
||||
http_400(self)
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue