From a496e8980fce447e018cd380fb3bf65e09820a18 Mon Sep 17 00:00:00 2001 From: Eva Date: Thu, 28 Mar 2024 03:41:35 +0100 Subject: [PATCH] server/rest: allow files with empty content --- server/szurubooru/rest/context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/rest/context.py b/server/szurubooru/rest/context.py index 40ba0bcb..393a37e2 100644 --- a/server/szurubooru/rest/context.py +++ b/server/szurubooru/rest/context.py @@ -51,7 +51,7 @@ class Context: use_video_downloader: bool = False, allow_tokens: bool = True, ) -> bytes: - if name in self._files and self._files[name]: + if name in self._files: return self._files[name] if name + "Url" in self._params: