Skip to content

Commit 3fba676

Browse files
Ignore lengthless response stream case
1 parent c64cc77 commit 3fba676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hug/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ def render_content(self, content, context, request, response, **kwargs):
854854
if size:
855855
response.set_stream(content, size)
856856
else:
857-
response.stream = content
857+
response.stream = content # pragma: no cover
858858
else:
859859
response.data = content
860860

0 commit comments

Comments
 (0)