Skip to content

Commit

Permalink
remove shortcut, better to pass it properly through json_encode
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Dec 19, 2024
1 parent f268501 commit 3733b17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lilya/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ def make_response(self, content: Any) -> bytes | memoryview:
"""
Makes the Response object type.
"""
# only handle empty string not empty bytes. Bytes are handled later
if content is None or content is NoReturn or content == "":
if content is None or content is NoReturn:
return b""
if isinstance(content, (bytes, memoryview)):
return content
Expand Down

0 comments on commit 3733b17

Please sign in to comment.