diff --git a/src/ptth/cli.py b/src/ptth/cli.py index c16f3b3..33faf43 100644 --- a/src/ptth/cli.py +++ b/src/ptth/cli.py @@ -68,7 +68,7 @@ def main(sys_args): # Prepare output JSON format output = { #"status": response.code, - "status": response.headers, + "status": dict(response.headers), "body": response.get_body_raw().decode('utf-8') # Assuming body is in bytes and needs to be decoded }