From 207c5dd49c18589e553232587de63ee327606b30 Mon Sep 17 00:00:00 2001 From: rra Date: Wed, 17 Jun 2020 18:11:57 +0200 Subject: [PATCH] print debug output --- basic_ap.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/basic_ap.py b/basic_ap.py index edbf7cb..b222e62 100644 --- a/basic_ap.py +++ b/basic_ap.py @@ -172,10 +172,10 @@ def post(): r = requests.post('https://post.lurk.org/inbox', json=json_message, headers=signed_headers) - a = (r.status_code, r.text, r.headers) - a = str(a) - - return a + html = f'Status code
{r.status_code}

Response Headers:
{r.headers}


json message:
{json.dumps(json_message)}


Request headers:
{signed_headers}
' + html_headers = f'{html}' + + return html_headers if __name__ == '__main__': app.debug =True