8000 Add conversation id header in skill requests (#2141) · microsoft/botbuilder-python@a2cccb3 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2cccb3

Browse files
authored
Add conversation id header in skill requests (#2141)
1 parent b8dd205 commit a2cccb3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ async def _post_content(
116116
) -> Tuple[int, object]:
117117
headers_dict = {
118118
"Content-type": "application/json; charset=utf-8",
119+
"x-ms-conversation-id": activity.conversation.id,
119120
}
120121
if token:
121122
headers_dict.update(

libraries/botframework-connector/botframework/connector/aio/operations_async/_conversations_operations_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ async def reply_to_activity(
510510
header_parameters = {}
511511
header_parameters["Accept"] = "application/json"
512512
header_parameters["Content-Type"] = "application/json; charset=utf-8"
513+
header_parameters["x-ms-conversation-id"] = conversation_id
513514
if custom_headers:
514515
header_parameters.update(custom_headers)
515516

libraries/botframework-connector/botframework/connector/operations/_conversations_operations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ def reply_to_activity(
495495
header_parameters = {}
496496
header_parameters["Accept"] = "application/json"
497497
header_parameters["Content-Type"] = "application/json; charset=utf-8"
498+
header_parameters["x-ms-conversation-id"] = conversation_id
498499
if custom_headers:
499500
header_parameters.update(custom_headers)
500501

0 commit comments

Comments
 (0)
0