Commit 98d2a33d by Oleksandr Barabash

unquote added

parent 2053081d
...@@ -5,7 +5,7 @@ import time ...@@ -5,7 +5,7 @@ import time
import uuid import uuid
from asyncio import Future from asyncio import Future
from typing import Optional, Dict from typing import Optional, Dict
from urllib.parse import urlparse, parse_qsl, urlencode from urllib.parse import urlparse, parse_qsl, urlencode, unquote
import aiohttp import aiohttp
from aiohttp.web_app import Application from aiohttp.web_app import Application
...@@ -374,7 +374,7 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler): ...@@ -374,7 +374,7 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
# TODO(s1z): string bot's @mention if needed. # TODO(s1z): string bot's @mention if needed.
data = dict(reference=reference, message=message) data = dict(reference=reference, message=message)
async with session.post(flow.url, json=data) as resp: async with session.post(unquote(flow.url), json=data) as resp:
Log.e(TAG, f"on_message_activity::response.status:" Log.e(TAG, f"on_message_activity::response.status:"
f"{resp.status}") f"{resp.status}")
rest_text = await resp.text() rest_text = await resp.text()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment