8000 fix for creating response with empty content in bfhttpadapter (#886) · Santhosh0505/botbuilder-python@eeca871 · GitHub
[go: up one dir, main page]

Skip to content

Commit eeca871

Browse files
fix for creating response with empty content in bfhttpadapter (microsoft#886)
Co-authored-by: tracyboehrer <tracyboehrer@users.noreply.github.com>
1 parent 1d40a57 commit eeca871

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/botbuilder-integration-aiohttp/botbuilder/integration/aiohttp/bot_framework_http_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ async def post_activity(
115115
data = (await resp.read()).decode()
116116
content = json.loads(data) if data else None
117117

118-
if content:
119-
return InvokeResponse(status=resp.status, body=content)
118+
return InvokeResponse(status=resp.status, body=content)
120119

121120
finally:
122121
# Restore activity properties.

0 commit comments

Comments
 (0)
0