mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
0cd4730ac9
commit
19291fc743
|
@ -785,7 +785,8 @@ def daemon_http_post(self) -> None:
|
||||||
receive_image_attachment(self, length, self.path,
|
receive_image_attachment(self, length, self.path,
|
||||||
self.server.base_dir,
|
self.server.base_dir,
|
||||||
self.server.domain,
|
self.server.domain,
|
||||||
self.server.debug)
|
self.server.debug,
|
||||||
|
self.outbox_authenticated)
|
||||||
self.server.postreq_busy = False
|
self.server.postreq_busy = False
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -17,10 +17,11 @@ from utils import binary_is_image
|
||||||
|
|
||||||
|
|
||||||
def receive_image_attachment(self, length: int, path: str, base_dir: str,
|
def receive_image_attachment(self, length: int, path: str, base_dir: str,
|
||||||
domain: str, debug: bool) -> None:
|
domain: str, debug: bool,
|
||||||
|
outbox_authenticated: bool) -> None:
|
||||||
"""Receives an image via POST
|
"""Receives an image via POST
|
||||||
"""
|
"""
|
||||||
if not self.outbox_authenticated:
|
if not outbox_authenticated:
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: unauthenticated attempt to ' +
|
print('DEBUG: unauthenticated attempt to ' +
|
||||||
'post image to outbox')
|
'post image to outbox')
|
||||||
|
|
Loading…
Reference in New Issue