From b614c855be543b5acc1873fc13454893b08718ef Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 29 Apr 2022 14:26:52 +0200 Subject: change get-consistency-proof HTTP method to GET Following API changes in log. --- sigsum-witness.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sigsum-witness.py b/sigsum-witness.py index 2465265..15bfb07 100755 --- a/sigsum-witness.py +++ b/sigsum-witness.py @@ -292,9 +292,8 @@ def fetch_tree_head_and_verify(log_verification_key): return tree_head, None def fetch_consistency_proof(first, second): - post_data = 'old_size={}\n'.format(first) - post_data += 'new_size={}\n'.format(second) - req = requests.post(g_args.base_url + 'sigsum/v0/get-consistency-proof', post_data) + url = g_args.base_url + 'sigsum/v0/get-consistency-proof/{}/{}'.format(first, second) + req = requests.get(url) if req.status_code != 200: return None, (ERR_CONSISTENCYPROOF_FETCH, "ERROR: unable to fetch consistency proof: {}".format(req.status_code)) -- cgit v1.2.3