From cb6c430d45f6547d7e6061bbe6468ec599bfa384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fra=C3=9F?= Date: Thu, 26 Oct 2023 11:53:17 +0200 Subject: [PATCH] [mod] conf:use "scheme" instead of "protocol" --- source/conf.py | 4 ++-- source/helpers.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/conf.py b/source/conf.py index b9e069c..6ee982a 100644 --- a/source/conf.py +++ b/source/conf.py @@ -1,13 +1,13 @@ _conf_data = { "url": { "test": { - "protocol": "https", + "scheme": "https", "host": "api.ote.domrobot.com", "port": 443, "path": "jsonrpc/" }, "production": { - "protocol": "https", + "scheme": "https", "host": "api.domrobot.com", "port": 443, "path": "jsonrpc/" diff --git a/source/helpers.py b/source/helpers.py index 1d0877f..ae420be 100644 --- a/source/helpers.py +++ b/source/helpers.py @@ -47,7 +47,7 @@ def http_call( { "http": (lambda: _http_client.HTTPConnection(request["url"]["host"], request["url"]["port"])), "https": (lambda: _http_client.HTTPSConnection(request["url"]["host"], request["url"]["port"])), - }[request["url"]["protocol"]] + }[request["url"]["scheme"]] )() connection.request( request["method"],