aboutsummaryrefslogtreecommitdiff
path: root/sigsum-witness.py
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-04-29 14:26:52 +0200
committerLinus Nordberg <linus@nordberg.se>2022-04-29 14:26:52 +0200
commitb614c855be543b5acc1873fc13454893b08718ef (patch)
tree319f69e2b5d61c391430ef339a10b8beae54a5d9 /sigsum-witness.py
parent3e287f5a49ceaec5a2f5c7b300f36734a1f952f0 (diff)
change get-consistency-proof HTTP method to GET
Following API changes in log.
Diffstat (limited to 'sigsum-witness.py')
-rwxr-xr-xsigsum-witness.py5
1 files 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))