From f10abcc3317d30f498f3fea5eb9db714b9c97026 Mon Sep 17 00:00:00 2001 From: Austin Siew <17107540+Aquafina-water-bottle@users.noreply.github.com> Date: Wed, 14 Jun 2023 19:14:50 -0600 Subject: [PATCH] docs: updated Python README to use 127.0.0.1 instead of localhost --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 19a008b..43492c8 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ def request(action, **params): def invoke(action, **params): requestJson = json.dumps(request(action, **params)).encode('utf-8') - response = json.load(urllib.request.urlopen(urllib.request.Request('http://localhost:8765', requestJson))) + response = json.load(urllib.request.urlopen(urllib.request.Request('http://127.0.0.1:8765', requestJson))) if len(response) != 2: raise Exception('response has an unexpected number of fields') if 'error' not in response: