aboutsummaryrefslogtreecommitdiff
path: root/modules/rest_api.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-13 15:49:32 +0100
committerGravatar jesopo2019-09-13 15:49:32 +0100
commitea34091a8302bb906d9c370548db2a775a495fe4 (patch)
treef38886c2baddfe9b088f0d1b80fbe58f4efd7571 /modules/rest_api.py
parentmove fediverse_server to a directory module, add rough outline of toot (diff)
signature
default REST API port to 5001, not 5000
Diffstat (limited to 'modules/rest_api.py')
-rw-r--r--modules/rest_api.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py
index 0d3b408d..11fad40b 100644
--- a/modules/rest_api.py
+++ b/modules/rest_api.py
@@ -78,7 +78,7 @@ class Handler(http.server.BaseHTTPRequestHandler):
if "Host" in headers:
host, _, port = headers["Host"].partition(":")
if not port:
- port = _bot.config.get("api-port", "5000")
+ port = _bot.config.get("api-port", "5001")
get_params_str = ""
if get_params: