From c103f540353d70329e5a9a3b6c4b4fa791ba98d3 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 12 Feb 2022 14:17:10 +0100 Subject: [PATCH] use dict for post --- backend/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/config.py b/backend/config.py index f308c4d..3fea5d4 100644 --- a/backend/config.py +++ b/backend/config.py @@ -112,7 +112,7 @@ class ProxyElem: try: async with self.local() as session: - resp = await session.post(proxy_server, json=request_data) + resp = await session.post(proxy_server, json=request_data.dict()) response_data = cast( ProxyResponse, ProxyResponse.parse_obj(await resp.text()) )