mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: empty binary response
This commit is contained in:
parent
c009a45887
commit
7dada8a7a0
@ -400,7 +400,10 @@ class PagesDescriptionViewSet(BaseViewSet):
|
||||
binary_data = page.description_yjs
|
||||
|
||||
def stream_data():
|
||||
yield binary_data
|
||||
if binary_data:
|
||||
yield binary_data
|
||||
else:
|
||||
yield b""
|
||||
|
||||
response = StreamingHttpResponse(
|
||||
stream_data(), content_type="application/octet-stream"
|
||||
|
Loading…
Reference in New Issue
Block a user