main
Bob Mottram 2024-04-13 10:37:42 +01:00
parent 0cd4730ac9
commit 19291fc743
2 changed files with 5 additions and 3 deletions

View File

@ -785,7 +785,8 @@ def daemon_http_post(self) -> None:
receive_image_attachment(self, length, self.path,
self.server.base_dir,
self.server.domain,
self.server.debug)
self.server.debug,
self.outbox_authenticated)
self.server.postreq_busy = False
return

View File

@ -17,10 +17,11 @@ from utils import binary_is_image
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
"""
if not self.outbox_authenticated:
if not outbox_authenticated:
if debug:
print('DEBUG: unauthenticated attempt to ' +
'post image to outbox')