Skip to content

Commit f0b14d3

Browse files
committed
[Change] client: outputs the body when request, continues when large body
1 parent d7f2ad7 commit f0b14d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/py/extra/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,14 +436,16 @@ async def OnRequest(
436436
status = atom
437437
elif isinstance(atom, HTTPResponse):
438438
res = atom
439+
yield atom.body
439440
break
440441
else:
441442
yield atom
442443
iteration += 1
443444
if (
445+
status is HTTPProcessingStatus.Processing,
444446
streaming is True
445447
or res
446-
and res.headers.contentType in {"text/event-stream"}
448+
and res.headers.contentType in {"text/event-stream"},
447449
):
448450
# TODO: We should swap out the body for a streaming body
449451
cxn.isStreaming = True

0 commit comments

Comments
 (0)