Browse Source

small changes to debug output, calling it a day

master
rra 5 years ago
parent
commit
65ee26522c
  1. 2
      basic_ap.py

2
basic_ap.py

@ -172,7 +172,7 @@ def post():
r = requests.post('https://post.lurk.org/inbox', json=json_message, headers=signed_headers) r = requests.post('https://post.lurk.org/inbox', json=json_message, headers=signed_headers)
html = f'Status code <pre>{r.status_code}</pre></br>Response Headers: <pre>{r.headers}</pre></br></br> json message: <pre>{json.dumps(json_message)}</pre></br></br> Request headers: <pre>{signed_headers}</pre>' html = f'Status code <pre>{r.status_code}</pre></br>Response Headers: <pre>{r.headers}</pre></br></br> json message: <pre>{r.request.body}</pre></br></br> Request headers: <pre>{r.request.headers}</pre>'
html_headers = f'<html><head><style>pre {{overflow:auto;background-color:#eee;}}</style></head><body>{html}</body></html>' html_headers = f'<html><head><style>pre {{overflow:auto;background-color:#eee;}}</style></head><body>{html}</body></html>'
return html_headers return html_headers

Loading…
Cancel
Save