From 60a1dc7bf9aa18416907602ef88b8e61dc068baf Mon Sep 17 00:00:00 2001 From: JayPiKay Date: Thu, 3 Oct 2019 10:34:38 +0200 Subject: [PATCH] Request jsonlist instead of superlist --- src/sbeam.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sbeam.py b/src/sbeam.py index c2d579c..d4c7b2e 100755 --- a/src/sbeam.py +++ b/src/sbeam.py @@ -55,12 +55,12 @@ def serve(recursive, filename): @cli.command() @click.argument('host', default='127.0.0.1') -def superlist(host): - """Fetch superlist from HOST running SupberBeam. +def jsonlist(host): + """Fetch jsonlist from HOST running SupberBeam. HOST is the IP of the SuperBeam server. """ - with requests.get(f'http://{host}:8080/superlist', + with requests.get(f'http://{host}:8080/jsonlist', headers={'User-Agent': 'sbeam'}) as response: assert response.status_code == 200 return response.text.split('\n')