mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/rest: allow files with empty content
This commit is contained in:
@ -51,7 +51,7 @@ class Context:
|
|||||||
use_video_downloader: bool = False,
|
use_video_downloader: bool = False,
|
||||||
allow_tokens: bool = True,
|
allow_tokens: bool = True,
|
||||||
) -> bytes:
|
) -> bytes:
|
||||||
if name in self._files and self._files[name]:
|
if name in self._files:
|
||||||
return self._files[name]
|
return self._files[name]
|
||||||
|
|
||||||
if name + "Url" in self._params:
|
if name + "Url" in self._params:
|
||||||
|
Reference in New Issue
Block a user